Sponsored Content
Full Discussion: no -a and tcp_keepint ??
Operating Systems AIX no -a and tcp_keepint ?? Post 302297594 by bakunin on Friday 13th of March 2009 11:33:48 PM
Old 03-14-2009
In principle: a TCP connection is a so-called "virtual channel", think of it like a telephone call: you ring someone, he picks up the call - until one of you ends this call you are connected. The same principle applies to TCP: a connection is initiated, established and after some time removed. You can monitor all this with the "netstat" utility.

After some time an idle connection is removed automatically to preserve resources of the network stack. How long the system waits and how it determines what comprises an "idle" connection is subject of the parameters you asked for. Most of the values are seconds or milliseconds.

There is an arcane fountain of knowledge you could tap for more information called the "man pages". In this case the man pages of "no", which explain the parameters in painstaking detail. I suggest you read a good book about TCP/IP concepts and protocol mechanics (i always suggest W. Richard Stevens "TCP/IP Illustrated" and Andrew Tanenbaums "Computer Networks") first.

I hope this helps.

bakunin
 
socket_connect6(3)					     Library Functions Manual						socket_connect6(3)

NAME
socket_connect6 - attempt to make a TCP connection SYNTAX
#include <socket.h> int socket_connect6(int s, const char ip[16], uint16 port,uint32 scope_id); DESCRIPTION
socket_connect6 attempts to make a connection from TCP socket s to TCP port port on IP address ip. The meaning of scope_id is dependent on the implementation and IPv6 IP. On link-local IPv6 addresses it specifies the outgoing interface index. The name (e.g. "eth0") for a given interface index can be queried with getifname. scope_id should normally be set to 0. socket_connect6 may return o 0, to indicate that the connection succeeded (and succeeded immediately, if the socket is non-blocking) o -1, setting errno to error_inprogress or error_wouldblock, to indicate that the socket is non-blocking o -1, setting errno to something else, to indicate that the connection failed (and failed immediately, if the socket is non-blocking). When a background connection succeeds or fails, s becomes writable; you can use socket_connected to see whether the connection succeeded. If the connection failed, socket_connected returns 0, setting errno appropriately. Once a TCP socket is connected, you can use the read and write system calls to transmit data. You can call socket_connect6 without calling socket_bind6. This has the effect as first calling socket_bind6 with IP address :: and port 0. EXAMPLE
#include <socket.h> int s; char ip[16]; uint16 p; s = socket_tcp6(); socket_bind6(s,ip,p); socket_connect6(s,ip,p,0); SEE ALSO
socket_connect4(3), socket_getifname(3) socket_connect6(3)
All times are GMT -4. The time now is 10:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy