We help IT Professionals succeed at work.

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

SME_Paddington
on
Medium Priority
600 Views
Last Modified: 2012-05-11
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.

Cout UDP TCP C++ Network
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
Comment
Watch Question

CEO/Programmer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.