Networking Forums

Networking Forums > Computer Networking > Linux Networking > Socket: recvfrom

Reply
Thread Tools Display Modes

Socket: recvfrom

 
 
sathya
Guest
Posts: n/a

 
      05-07-2009, 07:06 AM
How does this socket behaves when the flag is zero ?
Is it Blocking or Non-Blocking Socket?



-----------------------------------------------------------------------------
recvfrom(snmp_socket_desc, packet, 1500, 0,
(struct sockaddr *)&from, &fromlength);
------------------------------------------------------------------------------
 
Reply With Quote
 
 
 
 
Chris Willing
Guest
Posts: n/a

 
      05-07-2009, 01:08 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 7 May 2009 00:06:58 -0700 (PDT), sathya <(E-Mail Removed)>
wrote:
> How does this socket behaves when the flag is zero ?
> Is it Blocking or Non-Blocking Socket?
>
>
>
> -----------------------------------------------------------------------------
> recvfrom(snmp_socket_desc, packet, 1500, 0,
> (struct sockaddr *)&from, &fromlength);
> ------------------------------------------------------------------------------


blocking.

From:
man recvfrom
"...
The flags argument to a recv() call is formed by OR'ing
one or more of the following values:
....
...."


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoC3WIACgkQEi1IpCjOY3ExNACgqIFB0c8njs EF37KRcCuGKfid
oagAn1cncsODRdQTOQsUO84aQviPSteb
=KZ9w
-----END PGP SIGNATURE-----
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python recvfrom not working when on different ip ambu.sreedharan Linux Networking 1 06-16-2011 05:52 PM
Multicast recvfrom not working?????? cs3266@gmail.com Linux Networking 3 06-26-2006 04:17 PM
recvfrom() unblocking.. how to do it? manu Linux Networking 4 04-21-2006 08:12 PM
problem with recvfrom Omega Linux Networking 0 11-21-2005 08:17 PM
Re: IPV4 recvfrom() thru which network interface Paul Chitescu Windows Networking 0 10-28-2003 11:06 AM



1 2 3 4 5 6 7 8 9 10 11