Changes between Version 156 and Version 157 of library_stdio


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

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v156 v157  
    436436 * '''flags''' : unsupported / must be 0.
    437437 * '''dest_addr''' : remote socket address.
    438  * '''addr_len''' : socket address length (in bytes).
     438 * '''addr_len''' : unused.
    439439 * return 0 if success / returns -1 if error.
    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 written in 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 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.
    443443 * '''socket''' : socket identifier.
    444444 * '''buffer''' : pointer on user buffer.
     
    446446 * '''flags''' : unsupported / must be 0.
    447447 * '''dest_addr''' : pointer on remote socket address.
    448  * '''addr_len''' : pointer on actual raw packet length. (in bytes).
     448 * '''addr_len''' : unused.
    449449 * return 0 if success / returns -1 if error.
    450450