I'm making an telnet kind of client in C and have a little problem.
Since I'm a half-newbie in networking I couldn't figure out how to receive data with a loop and in the same time have the ability to send.
Pseudo code :
while
receive data
print data
end loop
But I'd like to send data with the standart console input too ..
I tried
Pseudo code :
while
get input
send input
receive data
end loop
but then the program waits for the input before receiving ..
I'd like to receive and send at the same time,without the receive depending on the input.
I would appreciate ideas.Thanks.