zahadumy
Nov 10th, 2006, 09:49 AM
I have a Server and a Client which communicate through a socket. The Server is a console application and the Client is an application which I have a JFrame for. I have a FClient class where I draw all the components on the form and stuff, and in the actionPerformed method , when I click a "connect" button, I call the default constructor from the Client class where I open the socket and I call some method from the Client class I use to comunicate with the server. The issue is the messages never get to the server, it hangs waiting to read something from the socket. I tried to use the Client class directly, and if I call it's contructor and methods they work, but for some reason it doesn't when I try to call them using the GUI.
I hope my question is clear enough, but if you need some code I can provide it here it my next post. Thank you.
I hope my question is clear enough, but if you need some code I can provide it here it my next post. Thank you.