recv() flags

Christos Ricudis ricudis at paiko.gr
Wed Sep 22 16:00:09 EEST 1999


Hello All!

Diabazontas to man page ths recv(2), blepw metaksy twn allwn flags to ekshs : 

       MSG_ERRQUEUE
              Receive packet from the error queue

       MSG_ERRQUEUE
              This  flag  specifies  that queued errors should be
              received from the socket error queue.  The error is
              passed  in an ancilliary message with a type depenö
              dent on the protocol (for IP this  is  IP_RECVERR).
              The error is supplied in a sock_extended_err strucö
              ture:

              #define SO_EE_ORIGIN_NONE       0
              #define SO_EE_ORIGIN_LOCAL      1
              #define SO_EE_ORIGIN_ICMP       2
              #define SO_EE_ORIGIN_ICMP6      3

              struct sock_extended_err
              {
                  __u32           ee_errno;   /* error number */
                  __u8            ee_origin;  /* where the error originated */
                  __u8            ee_type;    /* type */
                  __u8            ee_code;    /* code */
                  __u8            ee_pad;
                  __u32           ee_info;    /* additional information */
                  __u32           ee_data;    /* other data */
              };

              struct sockaddr *SOCK_EE_OFFENDER(struct sock_extended_err *);

              ee_errno contains the errno number  of  the  queued
              error.   ee_origin  is the origin code of where the
              error originated.  The other  fields  are  protocol
              specific.   SOCK_EE_OFFENDER  returns  a pointer to
              the address of the network object where  the  error
              originated  from. If this address is not known, the
              sa_family member of the sockaddr contains AF_UNSPEC
              and the other fields of the sockaddr are undefined.
              The payload of the packet that caused the error  is
              passed as normal data.

              For local errors, no address is passed (this can be
              checked with the cmsg_len member of  the  cmsghdr).
              For  error receives, the MSG_ERRQUEUE is set in the
              msghdr.  After an error has been passed, the  pendö
              ing  socket  error is regenerated based on the next
              queued error and will be passed on the next  socket
              operation.

Pio katw : 

CONFORMING TO
       4.4BSD (these function calls first appeared in 4.2BSD).

Dyo 4.4BSD systhmata poy exw edw (BSDI kai FreeBSD) den anaferoyn tipota. O
makariths o Stevens epishs den anaferei tipota. Prokeitai profanws gia
unfuckinglydocufuckingmented fuckfeature toy linux. 

Kserei kaneis tipote perissotero? 

--
Christos Ricudis
Prof:    So the American government went to IBM to come up with a data
         encryption standard and they came up with ...
Student: EBCDIC!
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list