Functions | |
INT8 | tcp_getsocket (UINT8, UINT8, UINT16, INT32(*)(INT8, UINT8, UINT32, UINT32)) |
Allocate a free socket in TCP socket pool. | |
INT8 | tcp_releasesocket (INT8) |
Release a TCP socket. | |
INT8 | tcp_listen (INT8, UINT16) |
Put TCP socket to listen on a given port. | |
INT8 | tcp_connect (INT8, UINT32, UINT16, UINT16) |
Initialize connection establishment towards remote IP&port. | |
INT16 | tcp_send (INT8, UINT8 *, UINT16, UINT16) |
Send user data over TCP using given TCP socket. | |
INT8 | tcp_close (INT8) |
Initiate TCP connection closing procedure. | |
INT8 | tcp_getstate (INT8) |
Get current state of the socket. | |
INT16 | tcp_checksend (INT8) |
Checks if it's possible to send data using given socket. | |
INT8 | tcp_abort (INT8) |
Reset connection and place socket to closed state. |
|
Definition at line 155 of file tcp.c. References tcb::event_listener, tcb::flags, tcb::locport, tcb::rem_ip, tcb::remport, tcb::state, TCP_STATE_FREE, TCP_STATE_RESERVED, TCP_TYPE_CLIENT, TCP_TYPE_CLIENT_SERVER, TCP_TYPE_NONE, TCP_TYPE_SERVER, TIMERTIC, tcb::tos, tcb::tout, and tcb::type. Referenced by https_init(), pop3c_init(), and smtpc_init(). |
|
Definition at line 228 of file tcp.c. References tcb::event_listener, tcb::flags, tcb::locport, tcb::rem_ip, tcb::remport, tcb::state, TCP_STATE_CLOSED, TCP_STATE_FREE, TCP_STATE_RESERVED, TCP_TYPE_NONE, tcb::tos, and tcb::type. |
|
Definition at line 290 of file tcp.c. References tcb::event_listener, tcb::flags, tcb::locport, tcb::myflags, tcb::receive_next, tcb::rem_ip, tcb::remport, tcb::retries_left, tcb::send_mtu, tcb::send_next, tcb::send_unacked, tcb::state, TCP_STATE_CLOSED, TCP_STATE_LISTENING, TCP_STATE_RESERVED, TCP_STATE_TIMED_WAIT, TCP_TYPE_SERVER, and tcb::type. Referenced by https_init(). |
|
Definition at line 377 of file tcp.c. References tcb::event_listener, tcb::flags, tcb::locport, tcb::myflags, tcb::rem_ip, tcb::remport, tcb::send_mtu, tcb::send_next, tcb::send_unacked, tcb::state, tcp_getfreeport(), tcp_initseq(), tcp_newstate(), tcp_sendcontrol(), TCP_STATE_CLOSED, TCP_STATE_LISTENING, TCP_STATE_RESERVED, TCP_STATE_SYN_SENT, TCP_TYPE_CLIENT, and tcb::type. |
|
Definition at line 481 of file tcp.c. References tcb::myflags, process_tcp_out(), tcb::send_mtu, tcb::send_next, tcb::send_unacked, tcb::state, and TCP_STATE_CONNECTED. |
|
Definition at line 549 of file tcp.c. References tcb::flags, tcb::myflags, tcb::send_next, tcb::send_unacked, tcb::state, tcp_newstate(), tcp_sendcontrol(), TCP_STATE_CLOSED, TCP_STATE_CLOSING, TCP_STATE_CONNECTED, TCP_STATE_FINW1, TCP_STATE_FINW2, TCP_STATE_LAST_ACK, TCP_STATE_LISTENING, TCP_STATE_SYN_RECEIVED, TCP_STATE_SYN_SENT, and TCP_STATE_TIMED_WAIT. |
|
Definition at line 648 of file tcp.c. References tcb::state. |
|
Definition at line 690 of file tcp.c. References tcb::send_mtu, tcb::send_next, tcb::send_unacked, tcb::state, and TCP_STATE_CONNECTED. |
|
Definition at line 736 of file tcp.c. References tcb::myflags, tcb::state, tcp_newstate(), tcp_sendcontrol(), TCP_STATE_CLOSED, TCP_STATE_CLOSING, TCP_STATE_CONNECTED, TCP_STATE_FINW1, TCP_STATE_FINW2, TCP_STATE_FREE, TCP_STATE_LAST_ACK, TCP_STATE_LISTENING, TCP_STATE_RESERVED, TCP_STATE_SYN_RECEIVED, TCP_STATE_SYN_SENT, and TCP_STATE_TIMED_WAIT. |