PDA

View Full Version : Simple client server application using tcpsocket and tcpserver doesn't work



alfrsca
16th December 2010, 14:07
hello, i'm new here...
i have a problem. i want to send data from a client to a server, but i think there is an error in my code... it does'nt work.can u have a look please? i'm sure there's something wrong, but i think 2 or 3 lines of code... please... it's for my university exam, i think it's not difficult at all! the code i attached.
thanks
5619
5620

franz
17th December 2010, 09:53
i want to send data from a client to a server, but i think there is an error in my code...
This is probably thought correctly :).


it does'nt work.
It would be nice if you told what exactly doesn't work. What have you tried so far, which examples have you looked at to try and solve this issue? Did you debug your code? What happens that shouldn't happen or what doesn't happen that should happen?


it's for my university exam, i think it's not difficult at all!
I'd say that you should be able to solve the issue yourself. There isn't a lot of code to debug.

And a general note: pick a coding style. Your code is a mess...