Sponsored Content
Full Discussion: TCP ports - TIME_WAIT
Top Forums UNIX for Advanced & Expert Users TCP ports - TIME_WAIT Post 36045 by potato-head on Monday 19th of May 2003 06:03:09 PM
Old 05-19-2003
It almost sounds as if the design should be modifed a bit-

Personally, I'd modify it to include a backlog for possible connections (The number will be something OS-specific, and I don't know what that is for SCO)- Kernel modifications sometimes allow for multiple connections to be backlogged. On top of that, I'd probably look into something to speed up what ever task is performed on the host machine, forking, threading (if you want it to be a huge task)-

Remember, you have to keep track of all opened connections, and allowing a box with every last opened port presents you with somewhat of a resource concern, not to mention security problem (Should also be addressed)-
 

10 More Discussions You Might Find Interesting

1. IP Networking

TCP Ports

We are being setup with a client over their VPN to support them remotely. We are unable to access their VPN through our server, they said to look and make sure that the TCP ports are enabled for their security setup (ports are in the 4000 range). How do you look for this and how do you enable a... (3 Replies)
Discussion started by: blacksheep
3 Replies

2. UNIX for Dummies Questions & Answers

TCP Listening Ports

Hello all, Can someone instruct me on how to change the listening port for ftp ( or any tcp service) from 21 to another port number? Thanks in advance.. -AJ (3 Replies)
Discussion started by: jacobsa
3 Replies

3. UNIX for Dummies Questions & Answers

TCP/UDP Ports

Just starting to work with unix, wondering if there is any good on-line documentation explaining TCP/UDP ports, how to use them, etc... Thanks.... (1 Reply)
Discussion started by: eugene_mayo
1 Replies

4. IP Networking

TCP/UDP Ports

Just wondering if anyone knows of any good on-line documentation on TCP/UDP Ports. Basically i want to know how to check if they are in use, learn how to close them, etc... Thanks... (5 Replies)
Discussion started by: eugene_mayo
5 Replies

5. Windows & DOS: Issues & Discussions

TCP ports and file sharing

In using a music file sharing program (WinMx), I am told that I cannot make a primary connection (fastest downloads) because I do not have a TCP and UDP port. I am running Windows Me.What do I do? Thanks. (6 Replies)
Discussion started by: dookster5
6 Replies

6. UNIX for Advanced & Expert Users

TCP slow access though certain ports

hi, I'm currently running with an issue whereby we are experiencing very poor access speeds to our Informix database. Connections or requests to the DB are taking in excess of 2/3/4 minutes during peek periods during the day. This has only just started to happen but so far we have been unable to... (0 Replies)
Discussion started by: fastyan
0 Replies

7. UNIX for Dummies Questions & Answers

Opening TCP ports

I'm not sure if this is the right place for this post, but I'd be grateful if somebody could please help me. I'm trying to open ports 999, 1982 and 1983 but am not having much luck. I used iptables -A INPUT -i eth0 -p tcp --sport 999 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A INPUT -i... (2 Replies)
Discussion started by: thehaapyappy
2 Replies

8. IP Networking

problem opening TCP ports

Please can somebody help me. I'm trying to open ports 999, 1982 and 1983 but am not having much luck. I used iptables -A INPUT -i eth0 -p tcp --sport 999 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A INPUT -i eth0 -p tcp --sport 1982 -m state --state NEW,ESTABLISHED -j ACCEPT iptables... (5 Replies)
Discussion started by: thehaapyappy
5 Replies

9. Solaris

List TCP ports with process

Hello, One of our developers is asking for a command/script in Solaris similar to "netstat -anp" in Linux. He gave this output as an example: root@xxx:~# netstat -anp | grep LISTEN tcp 0 0 0.0.0.0:7937 0.0.0.0:* LISTEN 16082/nsrexecd tcp 0 ... (7 Replies)
Discussion started by: vimes
7 Replies

10. Red Hat

How to kill a TCP connection which has status TIME_WAIT & no PID

Hi, I want to kill TCP connections which have status as TIME_WAIT & no PID (as per the output of the "netstat - p" command). Is there any command/utility available to kill connections to a specific port or IP address. The problem is that these connections don't have process ID (see... (4 Replies)
Discussion started by: Davinder31may
4 Replies
QServerSocket(3qt)														QServerSocket(3qt)

NAME
QServerSocket - TCP-based server SYNOPSIS
#include <qserversocket.h> Inherits QObject. Public Members QServerSocket ( Q_UINT16 port, int backlog = 1, QObject * parent = 0, const char * name = 0 ) QServerSocket ( const QHostAddress & address, Q_UINT16 port, int backlog = 1, QObject * parent = 0, const char * name = 0 ) QServerSocket ( QObject * parent = 0, const char * name = 0 ) virtual ~QServerSocket () bool ok () const Q_UINT16 port () const int socket () const virtual void setSocket ( int socket ) QHostAddress address () const virtual void newConnection ( int socket ) = 0 Protected Members QSocketDevice * socketDevice () DESCRIPTION
The QServerSocket class provides a TCP-based server. This class is a convenience class for accepting incoming TCP connections. You can specify the port or have QServerSocket pick one, and listen on just one address or on all the machine's addresses. Using the API is very simple: subclass QServerSocket, call the constructor of your choice, and implement newConnection() to handle new incoming connections. There is nothing more to do. (Note that due to lack of support in the underlying APIs, QServerSocket cannot accept or reject connections conditionally.) See also QSocket, QSocketDevice, QHostAddress, QSocketNotifier, and Input/Output and Networking. MEMBER FUNCTION DOCUMENTATION
QServerSocket::QServerSocket ( Q_UINT16 port, int backlog = 1, QObject * parent = 0, const char * name = 0 ) Creates a server socket object, that will serve the given port on all the addresses of this host. If port is 0, QServerSocket will pick a suitable port in a system-dependent manner. Use backlog to specify how many pending connections the server can have. The parent and name arguments are passed on to the QObject constructor. Warning: On Tru64 Unix systems a value of 0 for backlog means that you don't accept any connections at all; you should specify a value larger than 0. QServerSocket::QServerSocket ( const QHostAddress & address, Q_UINT16 port, int backlog = 1, QObject * parent = 0, const char * name = 0 ) Creates a server socket object, that will serve the given port only on the given address. Use backlog to specify how many pending connections the server can have. The parent and name arguments are passed on to the QObject constructor. Warning: On Tru64 Unix systems a value of 0 for backlog means that you don't accept any connections at all; you should specify a value larger than 0. QServerSocket::QServerSocket ( QObject * parent = 0, const char * name = 0 ) Construct an empty server socket. This constructor, in combination with setSocket(), allows us to use the QServerSocket class as a wrapper for other socket types (e.g. Unix Domain Sockets under Unix). The parent and name arguments are passed on to the QObject constructor. See also setSocket(). QServerSocket::~QServerSocket () [virtual] Destroys the socket. This causes any backlogged connections (connections that have reached the host, but not yet been completely set up by calling QSocketDevice::accept()) to be severed. Existing connections continue to exist; this only affects the acceptance of new connections. QHostAddress QServerSocket::address () const Returns the address on which this object listens, or 0.0.0.0 if this object listens on more than one address. ok() must be TRUE before calling this function. See also port() and QSocketDevice::address(). void QServerSocket::newConnection ( int socket ) [pure virtual] This pure virtual function is responsible for setting up a new incoming connection. socket is the fd (file descriptor) for the newly accepted connection. bool QServerSocket::ok () const Returns TRUE if the construction succeeded; otherwise returns FALSE. Q_UINT16 QServerSocket::port () const Returns the port number on which this server socket listens. This is always non-zero; if you specify 0 in the constructor, QServerSocket will pick a non-zero port itself. ok() must be TRUE before calling this function. See also address() and QSocketDevice::port(). Example: network/httpd/httpd.cpp. void QServerSocket::setSocket ( int socket ) [virtual] Sets the socket to use socket. bind() and listen() should already have been called for socket. This allows us to use the QServerSocket class as a wrapper for other socket types (e.g. Unix Domain Sockets). int QServerSocket::socket () const Returns the operating system socket. QSocketDevice * QServerSocket::socketDevice () [protected] Returns a pointer to the internal socket device. The returned pointer is 0 if there is no connection or pending connection. There is normally no need to manipulate the socket device directly since this class does all the necessary setup for most client or server socket applications. SEE ALSO
http://doc.trolltech.com/qserversocket.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qserversocket.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QServerSocket(3qt)
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy