Re: the 4th parameter of 'recv' function, 0?
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Mon, 11 Aug 2008 12:08:15 -0700
That's the normal case and I imagine 99% of the socket code
out there uses no special flags.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Alex" <Alex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A61396CC-19F5-4BCF-AF1F-3945961BC061@xxxxxxxxxxxxxxxx
in the Bluetooth sample 'bthcxn' of the Windows SDK v6.1 :
iLengthReceived = recv(ClientSocket,
pszDataBufferIndex,
(CXN_TRANSFER_DATA_LENGTH -
uiTotalLengthReceived),
0);
From the MSDN http://msdn.microsoft.com/en-us/library/ms740121(VS.85).aspx
I know there are three values of the 'flag' in function recv.
MSG_PEEK 0x1
MSG_OOB 0x2
MSG_WAITALL 0x4
what is '0' represent for? How it influence the behavior of the function
'recv'?
Is there something else I can refer to?
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
- the 4th parameter of 'recv' function, 0?
- Prev by Date: Re: First UDP message to a specific IP gets lost
- Next by Date: Re: sending echo request via socket (linux assembly)
- Previous by thread: the 4th parameter of 'recv' function, 0?
- Next by thread: Re: the 4th parameter of 'recv' function, 0?
- Index(es):
Loading