TCPIP client server communications
-
I'm trying to learn how to communicate between applications and evaluation of the various projects i've come across have helped, but i still have one area i'm not having luck with. Lets say i have a tcpclient connected and it sends a message to server, servers listener accepts it adds the client object to a list and can respond to requests from the client. The connection stays active and my client gui app can press button repeating the process. Now on sever side gui app lets say i want to initiate a message to the client. I try to utilize the same client object and send some data, but client does not get the message until the connection ends, ie a disconnect. Anyone have any code examples or links to some that would demonstrate this process?
-
I'm trying to learn how to communicate between applications and evaluation of the various projects i've come across have helped, but i still have one area i'm not having luck with. Lets say i have a tcpclient connected and it sends a message to server, servers listener accepts it adds the client object to a list and can respond to requests from the client. The connection stays active and my client gui app can press button repeating the process. Now on sever side gui app lets say i want to initiate a message to the client. I try to utilize the same client object and send some data, but client does not get the message until the connection ends, ie a disconnect. Anyone have any code examples or links to some that would demonstrate this process?
-