Re: the 4th parameter of 'recv' function, 0?
- From: "Luke Alcatel" <luke@xxxxxxxxxxx>
- Date: Tue, 12 Aug 2008 12:11:38 -0400
Assume oef -> eof? I don't know what eof on a socket means. The peer can
close the socket and then you would get a return of 0 for recv. Also don't
know what is meant by "magic numbers as default." As stated, 0 for 4th
parameter is typical case, no magic. Sounds as if your particular problem
has more to due with perl than the win32 network API. I've never seen the
behavior you describe when using recv the same way in a C program.
LA
"freefox" <robert.locke@xxxxxxxxxxxxxxxx> wrote in message
news:4cfd1bfd-16b8-4c1e-b94c-5b29440e39ef@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 11 Aug, 21:08, "Alexander Nickolov" <agnicko...@xxxxxxxx> wrote:
That's the normal case and I imagine 99% of the socket code
out there uses no specialflags.
Still it is strange to require magic numbers as default.
I too have a hard time figuring out what it is suppose to offer.
In my (Perl) program recv hangs until it have read as many bytes as
specified by the third arg.
As I understand the documentation that is the behavior if MSG_WAITALL
is set.
But I have set the 'flag' 0, which means ???
I just wanna read until oef on the socket. How do I do that?
Best regards!
.
- Follow-Ups:
- Re: the 4th parameter of 'recv' function, 0?
- From: freefox
- Re: the 4th parameter of 'recv' function, 0?
- References:
- the 4th parameter of 'recv' function, 0?
- From: Alex
- Re: the 4th parameter of 'recv' function, 0?
- From: Alexander Nickolov
- Re: the 4th parameter of 'recv' function, 0?
- From: freefox
- the 4th parameter of 'recv' function, 0?
- Prev by Date: Re: First UDP message to a specific IP gets lost
- Next by Date: Re: First UDP message to a specific IP gets lost
- Previous by thread: Re: the 4th parameter of 'recv' function, 0?
- Next by thread: Re: the 4th parameter of 'recv' function, 0?
- Index(es):
Relevant Pages
|
Loading