Changes between Version 156 and Version 157 of library_stdio
- Timestamp:
- Dec 29, 2016, 8:29:20 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v156 v157 436 436 * '''flags''' : unsupported / must be 0. 437 437 * '''dest_addr''' : remote socket address. 438 * '''addr_len''' : socket address length (in bytes).438 * '''addr_len''' : unused. 439 439 * return 0 if success / returns -1 if error. 440 440 441 441 === 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 inthe <dest_addr> argument. It returns only when the user buffer has been written. The user thread blocking uses a descheduling policy.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. 443 443 * '''socket''' : socket identifier. 444 444 * '''buffer''' : pointer on user buffer. … … 446 446 * '''flags''' : unsupported / must be 0. 447 447 * '''dest_addr''' : pointer on remote socket address. 448 * '''addr_len''' : pointer on actual raw packet length. (in bytes).448 * '''addr_len''' : unused. 449 449 * return 0 if success / returns -1 if error. 450 450