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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT PHP
socket_listen
SOCKET_LISTEN(3) 1 SOCKET_LISTEN(3)
socket_listen - Listens for a connection on a socket
SYNOPSIS
bool socket_listen (resource $socket, [int $backlog])
DESCRIPTION
After the socket $socket has been created using socket_create(3) and bound to a name with socket_bind(3), it may be told to listen for
incoming connections on $socket.
socket_listen(3) is applicable only to sockets of type SOCK_STREAM or SOCK_SEQPACKET.
PARAMETERS
o $socket
- A valid socket resource created with socket_create(3).
o $backlog
- A maximum of $backlog incoming connections will be queued for processing. If a connection request arrives with the queue full
the client may receive an error with an indication of ECONNREFUSED, or, if the underlying protocol supports retransmission, the
request may be ignored so that retries may succeed.
Note
The maximum number passed to the $backlog parameter highly depends on the underlying platform. On Linux, it is silently
truncated to SOMAXCONN. On win32, if passed SOMAXCONN, the underlying service provider responsible for the socket will set
the backlog to a maximum reasonable value. There is no standard provision to find out the actual backlog value on this plat-
form.
RETURN VALUES
Returns TRUE on success or FALSE on failure. The error code can be retrieved with socket_last_error(3). This code may be passed to
socket_strerror(3) to get a textual explanation of the error.
SEE ALSO
socket_accept(3), socket_bind(3), socket_connect(3), socket_create(3), socket_strerror(3).
PHP Documentation Group SOCKET_LISTEN(3)