Changes between Version 157 and Version 158 of library_stdio


Ignore:
Timestamp:
Dec 29, 2016, 10:06:46 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v157 v158  
    440440
    441441 === 6) int '''giet_nic_recvfrom'''( int socket , void * buffer , int length , int flags , sockaddr_t * dest_addr , int * addr_len ) ===
    442 This blocking function moves one ''raw'' packet from a kernel buffer to an user buffer defined by the <buffer> argument. The <length> argument define the user buffer size (in bytes). Packets exceeding this size are discarded. Only packets matching the local IP address and local port number, defined by the <socket> argument will be delivered (2 matching conditions). If the socket is in ''connected'' mode, the matching must also be on remote IP address an remote port number (4 matching conditions). The received packet length is written in the <addr_len> argument. The remote socket address is defined by the <dest_addr> argument. It returns only when the user buffer has been written. The user thread blocking uses a descheduling policy.
     442This blocking function moves one ''raw'' packet from a kernel buffer to an user buffer defined by the <buffer> argument. The <length> argument define the user buffer size (in bytes). Packets exceeding this size are discarded. Only packets matching the local IP address and local port number, defined by the <socket> argument will be delivered (2 matching conditions). If the socket is in ''connected'' mode, the matching must also be on remote IP address an remote port number (4 matching conditions). The remote socket address is returned in the <dest_addr> argument. It returns only when the user buffer has been written. The user thread blocking uses a descheduling policy.
    443443 * '''socket''' : socket identifier.
    444444 * '''buffer''' : pointer on user buffer.