A client program connects to my server program written in JAVA via TCP connection (ServerSocket). I want to close the TCP connection between these two programs with a Solaris command or tool for debugging purposes, Something like Essensial NetTools in windows which can close a TCP connection. What should I do?
The ProcessID ($PID) of server application can be found with following command:
The TCP connection can be seen by following command:
33: S_IFSOCK mode:0666 dev:309,0 ino:22564 uid:0 gid:0 size:0 O_RDWR SOCK_STREAM SO_REUSEADDR,SO_SNDBUF(16384),SO_RCVBUF(17520) sockname: AF_INET 10.20.11.41 port: 3066 <--server peername: AF_INET 172.18.21.11 port: 38532 <--client
Now, How to close this connection?
Can send SIGKILL to the Socket connection? if so, How?