Embedded TCP/IP stack
4.7.0
|
Socket options for the fnet_socket_setopt() and the fnet_socket_getopt().
Enumerator | |
---|---|
SO_ACCEPTCONN | Returns |
SO_KEEPALIVE | This option enables keep-alive probes for a socket connection. These probes are used to maintain a TCP connection and regularly test the connection to ensure that it's still available. It is only valid for connection-oriented protocols (TCP). |
SO_DONTROUTE | This option enables bypassing of a routing algorithm. It means that the network interface tries to send a datagram without a gateway. |
SO_LINGER | This option controls the action taken when unsent data is present, and fnet_socket_close() is called. This option is defined by the fnet_linger structure. |
SO_OOBINLINE | This option specifies that out-of-band (OOB) data will be received in line with regular data. It is valid only for the TCP protocol. |
SO_SNDBUF | This option defines the maximum per-socket buffer size for output data. |
SO_RCVBUF | This option defines the maximum per-socket buffer size for input data. |
SO_STATE | This option defines the current state of the socket. |
SO_ERROR | This option returns a per-socket-based error code. |
SO_TYPE | This option defines the type of the socket. This is a read-only option and it is defined by the fnet_socket_type_t type. |
SO_RCVNUM | This option is used to determine the amount of data pending in the socket-input buffer. |
SO_SNDNUM | This option is used to determine the amount of data in the socket output buffer. |
SO_LISTENQLIMIT | Backlog limit of the socket or the maximal number of queued connections, which is set by fnet_socket_listen(). |
SO_LISTENQLEN | Complete queue length of the socket. If it has the nonzeo value, unaccepted complete connections are waiting for fnet_socket_accept(). |
TCP_MSS | This option defines the maximum size of the input segments (MSS).
|
TCP_BSD | If this option is set to |
TCP_NODELAY | If this option is set to |
TCP_FINRCVD | This option is set when the final (FIN) segment arrives. |
TCP_URGRCVD | This option is set when the urgent byte arrives, and reset when this byte is read. |
TCP_KEEPIDLE | When the SO_KEEPALIVE option is enabled, TCP probes a connection that has been idle for some amount of time. The default value for this idle period is |
TCP_KEEPINTVL | When the SO_KEEPALIVE option is enabled, TCP probes a connection that has been idle for some amount of time. If the remote system does not respond to a keepalive probe, TCP retransmits the probe after some amount of time. The default value for this retransmit interval is |
TCP_KEEPCNT | When the SO_KEEPALIVE option is enabled, TCP probes a connection that has been idle for some amount of time. If the remote system does not respond to a keepalive probe, TCP retransmits the probe a certain number of times before a connection is considered to be broken. The default value for this keepalive probe retransmit limit is |
IP_TOS | This option defines the IPv4 TOS (type-of-service) field for outgoing datagrams. |
IP_TTL | This option defines the IPv4 TTL (time-to-live) vlaue for outgoing datagrams. |
IP_MULTICAST_TTL | This option allows to change IPv4 "time to live" (TTL) value for outgoing multicast datagrams. Otherwise, multicast datagrams are sent with a default value of 1, to prevent them to be forwarded beyond the local network. |
IP_ADD_MEMBERSHIP | Join the socket to the IPv4 multicast group on the specified interface. It tells the system to receive packets on the network whose destination is the group address (but not its own). It is valid only for the SOCK_DGRAM (UDP) sockets. |
IP_DROP_MEMBERSHIP | Drops membership to a IPv4 multicast group and interface. |
IPV6_UNICAST_HOPS | This option defines hop limit used for outgoing unicast IPv6 packets. |
IPV6_MULTICAST_HOPS | Set the hop limit to use for outgoing multicast IPv6 packets. |
IPV6_JOIN_GROUP | (RFC3493) Join a multicast group on a specified local interface. |
IPV6_LEAVE_GROUP | (RFC3493) Leave a multicast group on a specified interface. |
Definition at line 478 of file fnet_socket.h.