I am trying to incorporate serial to ethernet connectivity and have a fully serial communications program. Then I decided to add a client socket so that I can use a product called XPort by Lantronix. It works great but I have a feeling that the windows socket API is a mystery to me. I have a button on a form called Refresh which fetches data. I have on the form in design mode a client socket which clientsocket1->Active property is true. Then in Form Activate I am calling clientsocket1->Open this is working. The function is automatically called from Form Activate when the program is first run and sends no data out the client socket after the program has finished loading if you click refresh which calls the same routine to fetch data it works....WHY???
Start Free Trial