https://community.cyanlabs.net..../t/connecting-with-c