소켓의 상태가 16진수로 표현이되던데 각 수 마다 의미하는 것을 알고싶습니다...
established와 syn_sent 이런것들과 16진수와 연결해서 알아야하고 각 상태가 의미하는바를 알아야하는데 여기저기 찾아봤지만 부족한 검색실력과 지식으로 아직 모르겠습니다.. 도움주시면 감사하겠습니다!
tcp Holds a dump of the TCP socket table. Much of the information is not of use apart from
debugging. The "sl" value is the kernel hash slot for the socket, the "local address"
is the local address and port number pair. The "remote address" is the remote address
and port number pair (if connected). 'St' is the internal status of the socket. The
'tx_queue' and 'rx_queue' are the outgoing and incoming data queue in terms of kernel
memory usage. The "tr", "tm->when" and "rexmits" fields hold internal information of
the kernel socket state and are only useful for debugging. The uid field holds the
creator euid of the socket.
책추천합니다.
TCP/IP Illustrated 시리즈를 한번 보시죠.
관련 내용이 있을거 같은데.
--------------
Burning Blue!
--------------
답변감사합니다!
책이 비싸서 사지를 못하구있네요 ^^;;;
man 5 proc
man 5 proc
tcp Holds a dump of the TCP socket table. Much of the information is not of use apart from
debugging. The "sl" value is the kernel hash slot for the socket, the "local address"
is the local address and port number pair. The "remote address" is the remote address
and port number pair (if connected). 'St' is the internal status of the socket. The
'tx_queue' and 'rx_queue' are the outgoing and incoming data queue in terms of kernel
memory usage. The "tr", "tm->when" and "rexmits" fields hold internal information of
the kernel socket state and are only useful for debugging. The uid field holds the
creator euid of the socket.
이상은 Valkyrie
mms://211.106.66.141/live4/kbs/psong182_m.asf
HAPPy !!
이상은 Valkyrie
http://aladdin.co.kr/shop/wproduct.aspx?ISBN=8995710160&kw=00001A
mms://211.106.66.141/live4/kbs/psong182_m.asf
HAPPy !!
http://www.joinc.co.kr/module
http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/system_programing/proc/NetState
이 문서를 참고해 보세요.
mynetstat소스는 좀 이상해요..
연결이 성립되었으면 ESTABLISHED가 나와야하는데 SYN_SENT가 뜬다는.......... 문자열순서가 잘못된건지 암튼 말이안됨;;
enum { TCP_ESTABLISHED =
enum
{
TCP_ESTABLISHED = 1,
TCP_SYN_SENT,
TCP_SYN_RECV,
TCP_FIN_WAIT1,
TCP_FIN_WAIT2,
TCP_TIME_WAIT,
TCP_CLOSE,
TCP_CLOSE_WAIT,
TCP_LAST_ACK,
TCP_LISTEN,
TCP_CLOSING /* now a valid state */
};
states 배열이 잘못된거 맞네요. 0번배열부터 시작해 버린듯.
댓글 달기