Click here to Skip to main content
15,039,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have a problem, I am very bad at programming and have a UDP client to write.

The client software should take the IP address and port number of the server it is talking to (poss on command line).
* It reads a line of text from standard input,
* sends this text in a UDP datagram to the server,
* waits for a UDP datagram in response,
* and then prints the text on standard output, prepended with the server's socket address (from the incoming datagram).
The process is repeated until EOF is detected on standard input.

If anyone can offer any help I would appreciate it.

Many thanks.

1 solution

Read this[^] article, and look into the "Client Program" section of it. Also look at Winsock[^] for further details.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900