Changeset 669 for trunk/kernel/kern/ksocket.h
- Timestamp:
- Nov 19, 2020, 11:44:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/ksocket.h
r668 r669 440 440 * @ fdid : [in] file descriptor index identifying the local server socket. 441 441 * @ crq_depth : [in] depth of CRQ queue of pending connection requests. 442 * @ return 0 if success / return -1 if failure 442 443 ***************************************************************************************/ 443 444 int socket_listen( uint32_t fdid, … … 549 550 550 551 /**************************************************************************************** 551 * This blocking function implements the sendto() syscall.552 * It registers the <remote_addr> and <remote_port> arguments in the local socket553 * descriptor, and does the same thing as the socket_send() function above,554 * but can be called on an unconnected UDP socket.555 ****************************************************************************************556 * @ fdid : [in] file descriptor index identifying the socket.557 * @ u_buf : [in] pointer on buffer containing packet in user space.558 * @ length : [in] packet size in bytes.559 * @ remote_addr : [in] destination IP address.560 * @ remote_port : [in] destination port.561 * @ return number of sent bytes if success / return -1 if failure.562 ***************************************************************************************/563 int socket_sendto( uint32_t fdid,564 uint8_t * u_buf,565 uint32_t length,566 uint32_t remote_addr,567 uint32_t remote_port );568 569 /****************************************************************************************570 552 * This blocking function implements the recv() syscall. 571 553 * It is used to receive data that has been stored by the NIC_RX server thread in the … … 594 576 595 577 /**************************************************************************************** 596 * This blocking function implements the recvfrom() syscall.597 * It registers the <remote_addr> and <remote_port> arguments in the local socket598 * descriptor, and does the same thing as the socket_recv() function above,599 * but can be called on an unconnected UDP socket.600 ****************************************************************************************601 * @ fdid : [in] file descriptor index identifying the socket.602 * @ u_buf : [in] pointer on buffer containing packet in user space.603 * @ length : [in] packet size in bytes.604 * @ remote_addr : [in] destination IP address.605 * @ remote_port : [in] destination port.606 * @ return number of received bytes if success / return -1 if failure.607 ***************************************************************************************/608 int socket_recvfrom( uint32_t fdid,609 uint8_t * u_buf,610 uint32_t length,611 uint32_t remote_addr,612 uint32_t remote_port );613 614 /****************************************************************************************615 578 * This blocking function implements the close() syscall for a socket. 616 579 * - For a UDP socket, it simply calls the static socket_destroy() function to release
Note: See TracChangeset
for help on using the changeset viewer.