Sponsored Content
Top Forums Programming close existing tcp connection in C Post 302278825 by raidzero on Wednesday 21st of January 2009 09:06:09 AM
Old 01-21-2009
Thanks for the reply. I understand that, it's just that tcpkill will terminate all connections, and that is certainly not what I want to do. I would like to kill any sockets using a specific port.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ftp - Connection close

Hi Can someone help me what is the problem, when i try to login via ftp, though i entered the correct password, i got an error message Connection refused. please help. thanks (3 Replies)
Discussion started by: kaibiganmi
3 Replies

2. UNIX for Dummies Questions & Answers

close tcp port

Hello, I have a service running (ODBC) and every now and then it will hang and I will have to stop and restart the service. The problem is when I stop the service, it indeed stops the service, but netstat reports a tcp port still open with the fin_wait_2 status. Then I must close the client... (1 Reply)
Discussion started by: raidzero
1 Replies

3. Shell Programming and Scripting

How to close TELNET Connection

Hi, I have logged into a system using Telnet and iam unable to close the connection to connect to the next system using arrays. Iam getting error "Connection Timed Out" Iam using net::Telnet module. Please suggest.. (1 Reply)
Discussion started by: sudhakaryadav
1 Replies

4. Shell Programming and Scripting

Usage of NOHUP - How to keep the child process running even if I close the Server connection

Hi. ! When I use the 'NOHUP' along with the '&', the process will be running in the background. Even when I attempt to close (Meaning 'EXIT') the session (say PUTTY in this case), it wont exit unless the process is completed. But, say when I forcefully terminate the session (SHUT DOWN the... (2 Replies)
Discussion started by: WinBarani
2 Replies

5. Programming

TCP trashing data on application close

I am using c to send data to a socket with the following commands: socket = socket(AF_INET, SOCK_STREAM, ptrp->p_proto); ioctl(socket, FIONBIO, (char *)&on); connect(socket) send(socket,data) shutdown(socket, SHUT_WR); recv(socket) //ready last of data waiting on the port //note this is... (3 Replies)
Discussion started by: metrix
3 Replies

6. Solaris

many tcp connection in close-wait

Hi, I use solaris Unix . I find there is some problem in application and it generate many "close-wait" tcp connect and stay in the server . it is generate by process id 7740 root@XX # netstat -an | grep CLOSE_WAIT | wc -l 285 root@XX # netstat -an | grep CLOSE_WAIT 10.158.35.4.34805 ... (2 Replies)
Discussion started by: abcdef
2 Replies

7. Solaris

Ssh to Solaris 10 server - close connection

Can ssh to server. Asks for password. Then seems to time out and close the connection. Any ideas? ---------- Post updated at 09:30 AM ---------- Previous update was at 07:51 AM ---------- Here is output from ssh -vvv -l user <IPaddress> debug3: packet_send2: adding 64 (len 59 padlen 5... (4 Replies)
Discussion started by: psychocandy
4 Replies

8. UNIX for Dummies Questions & Answers

Remotely close & rerun SSH connection

I'm trying to remotely run an upgrade script (via SSH) that update the SSH script on several hosts, just need to add several flags for the ssh command to look like this: ssh -Nf -i id_logs -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=5... (4 Replies)
Discussion started by: OdedOvdat
4 Replies

9. Shell Programming and Scripting

[Solved] Rsh does not close connection on exit

Dear all, We have a service that we start up remotely with rsh but unfortunately, the rsh never returns to the calling server. This seems to be because the processes of the service we've just started hold the port open.RBATTE1 @ /home/RBATTE1>netstat -na|grep 49.51 tcp4 0 0 ... (1 Reply)
Discussion started by: rbatte1
1 Replies

10. UNIX for Advanced & Expert Users

30 tcp connections Established for a while and after a few minutes are close

Good morning, I need your help please After Restarting Aps or connection, these are connections tcp 0 0 10.80.1.26.57597 10.81.248.79.53008 ESTABLISHED tcp 0 47 10.80.1.26.57607 10.81.248.79.53008 ESTABLISHED tcp 0 0 ... (4 Replies)
Discussion started by: alexcol
4 Replies
burgerspace-server(6)													     burgerspace-server(6)

NAME
burgerspace-server - UDP server for the networked version of BurgerSpace SYNOPSIS
burgerspace-server DESCRIPTION
burgerspace-server is a server that accepts connections from BurgerSpace clients to allow two players to compete with each other. One player controls the chef and the other controls the egg. Other clients can connect as spectators. burgerspace-server should be started in a terminal. To terminate it, give the Ctrl-C sequence or use the kill(1) command with the server's process ID as the argument. The connections use the UDP protocol. The --port option can be used to specify a non-default listening port (see below). After the server has started, the user who wants to control the chef must start the client with this command: burgerspace --server=the.server.hostname.com --chef Use the appropriate hostname or IP address as the argument for --server. The user who wants to control the egg must give the --enemy option instead of --chef. The --port option can be added to the burgerspace command-line to specify the server port, if the server was started with a non-default UDP listening port. OPTIONS
--help display a help page and exit --version display version information and exit --initial-level=N start game at level N. Default is 1. N must be at least 1. --port=PORT UDP port number on which the server must listen for incoming clients. The default is 49152. LICENSE
This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. AUTHORS
Pierre Sarrazin (code) Luce St-Amand (most images) FILES
This program uses the flatzebra library, by the same author. This library is itself based on the SDL graphics library (see http://www.lib- sdl.org). See the BurgerSpace Home Page: http://sarrazip.com/dev/burgerspace.html BUGS
Performance has not been tested thoroughly. Users who want to play the stable stand-alone game should use version 1.8.3. SEE ALSO
burgerspace(6) May 16th, 2010 burgerspace-server(6)
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy