#include <inet.h>
Functions | |
int | tcp_poll (struct s_socket *so, t_pollrec *pollrec) |
int | tcp_attach (struct s_socket *so) |
int | tcp_detach (struct s_socket *so) |
int | tcp_bind (struct s_socket *so, struct sockaddr *sa, socklen_t salen) |
int | tcp_getpeername (struct s_socket *so, struct sockaddr *sa, socklen_t *salen) |
int | tcp_getsockname (struct s_socket *so, struct sockaddr *sa, socklen_t *salen) |
int | tcp_connect (struct s_socket *so, struct sockaddr *sa, socklen_t salen) |
size_t | tcp_recv (struct s_socket *so, pid_t pid, struct sockaddr *sa, socklen_t *salen, vaddr_t uaddr, size_t usize) |
int | tcp_accept (struct s_socket *so, struct sockaddr *sa, socklen_t *salen, void **ret_pcb) |
int | tcp_listen (struct s_socket *so, int backlog) |
int | tcp_send (struct s_socket *so, struct s_data_buf *data, size_t data_size, struct sockaddr *sa, socklen_t salen) |
int | tcp_inetfs_read (pid_t pid, struct s_of *of, char *ubuf, size_t usize) |
Variables | |
static char * | state_strings [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { "STATE_CLOSED", "STATE_LISTEN", "STATE_SYN_SENT", "STATE_SYN_RCVD", "STATE_ESTABLISHED", "STATE_FIN_WAIT_1", "STATE_FIN_WAIT_2", "STATE_TIME_WAIT", "STATE_CLOSE_WAIT", "STATE_LAST_ACK" } |