Link to home
Start Free TrialLog in
Avatar of SME_Paddington
SME_PaddingtonFlag for United Kingdom of Great Britain and Northern Ireland

asked on

C++ How to: Send Values over TCP/UDP

Dear Experts,

I would like to be able to echo the contents of cout to another computer, through using TCP/ UDP. Is there any command or function that you can think of that will allow me to do this.

Picture attached is related. I would like the ASCII dragon to be echoed/ output to the client below, and vise versa. The dragon is not received in blocking mode, a packet is merely received to allow the program to continue.

User generated image
Essentially what I want to know, is a way I can echo values (strings, int's, chars, etc.) from my console to another console via the network.

I currently used structured messages - should I just build upon the use of these?

Kind Regards, SME_Paddington
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial