Hi guys,
I am new to this forum and also socket programming, and heres my question.
I am using send() and recv() in my socket codes. How do you make them flexible in the sense you can have multiple send() before you recv(). at the moment my code looks like
send()
recv()
send()
recv()
.
.
.
send()
recv()
which means the order of send() and recv() is fixed. I need it to be like a chatting program, where you can have one end to have many send()s and a few recv() after that... the other end to have reverse order obviously.... I am sure you guys could understand what I need here. Tried to look through the forum, but not having much luck. perhaps a link to previous thread will help too...
Thanks heaps!