#Issues communicating between sockets.

6 messages ยท Page 1 of 1 (latest)

jovial merlinBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

magic bronze
#

How are you even establishing the connection?
Are you sure write is the correct function? I thought send would be correct.
Also if you want to read an entire line and remove a (possibly) trailing newline character you can do:

fgets(buf, sizeof buf, stdin);
buf[strcspn(buf, "\n")] = 0;
jovial shore
jovial shore
#

!solved

jovial merlinBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity