Quote Originally Posted by alfrsca View Post
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...