Re: select(), sending and receiving data
- From: Markus Pitha <markus@xxxxxxxxxx>
- Date: Mon, 26 Dec 2005 18:43:53 +0000
Hi again,
I tried the whole day to manage this problem, but nothing worked.
I don't understand, how FD_SET is to use. FD_SET is something I have to
set or not, but when I set it, how should I now, if the server sends
data or not in this moment. It's only possible either to set
FD_SET(sock, &readfds); or FD_SET(sock, &writefds); but never both. I
don't understand the weird behaviour of the program, because anything
must me wrong there. I still have to type at least one character to
receive the message of the server. Then I'm able to type again.
Usually I should immediately receive the message after the connection to
the server.
.
- Follow-Ups:
- Re: select(), sending and receiving data
- From: David Schwartz
- Re: select(), sending and receiving data
- From: Alex Fraser
- Re: select(), sending and receiving data
- From: "Nils O. Selåsdal"
- Re: select(), sending and receiving data
- References:
- select(), sending and receiving data
- From: Markus Pitha
- Re: select(), sending and receiving data
- From: Pascal Bourguignon
- select(), sending and receiving data
- Prev by Date: IPV6 Fragmentation.
- Next by Date: Re: select(), sending and receiving data
- Previous by thread: Re: select(), sending and receiving data
- Next by thread: Re: select(), sending and receiving data
- Index(es):
Relevant Pages
|