03-05-2002
My app. is listening. I create the socket, do the bind, listen, select, then accept when the select passes to set up the connection. These are stream-type TCP sockets. The code works fine locally, if I have the client and server on the same Windows machine. I haven't compiled the client on the Linux box yet.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am very new to unix. I want to open a file and read one line in at a time. Can anybody help? (3 Replies)
Discussion started by: saarshad001
3 Replies
2. UNIX for Advanced & Expert Users
I have installed JASS on one of my sun servers.
I am now trying to open for CDE. For that I have done these steps:
mv /etc/rc2.d/_S71rpc.JASS.* /etc/rc2.d/S71rpc
mv /etc/rc2.d/_S99dtlogin.JASS* /etc/rc2.d/S99dtlogin
but still no CDE.
Any advice on this?? (3 Replies)
Discussion started by: encrypted
3 Replies
3. AIX
Hi guys,
I need to open ports on my AIX machine. The only way I know is to use service name to disable or enable ports which are used by the services. I found in /etc/services that the ports are unidentified. Btw, I want to open port number 11576 and 11577. Need help on this one. Thanks! :) (1 Reply)
Discussion started by: raskita
1 Replies
4. 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
5. 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
6. Solaris
Hello all,
I need assistance...
I need to open a port # 36677 and have it remain open even after a power cycle.
I thought all I needed to do was add it to /etc/services. That was not it...
Can someone please tell me how to do this.
Thank you. (6 Replies)
Discussion started by: komputersman
6 Replies
7. Solaris
I am working with Solaris 9.In that I am trying to open SMC(Solaris Management Console) but when I am clicking it,nothing is opening.
Can any1 tell me why it is not opening??:confused: (1 Reply)
Discussion started by: smartgupta
1 Replies
8. Cybersecurity
Hello there
I'm using a vendor-supplied application on RHEL4 that includes a built-in Tcl webserver. The webserver is working but I cannot access it from any computer other than the host workstation. I suspect that the firewall is blocking ports 8015/8016. I have two questions:
1. How do... (1 Reply)
Discussion started by: craig3201
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I need a command/script, who opened my dataset, consider a situation like, if a user has opened the dataset few days back then, that command/script should list his/her id.
I don't want audit on my dataset, i need only list of users who are using my dataset.
Thank you. (10 Replies)
Discussion started by: subbarao12
10 Replies
LEARN ABOUT NETBSD
listen
LISTEN(2) BSD System Calls Manual LISTEN(2)
NAME
listen -- listen for connections on a socket
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/socket.h>
int
listen(int s, int backlog);
DESCRIPTION
To accept connections, a socket is first created with socket(2), a willingness to accept incoming connections and a queue limit for incoming
connections are specified with listen(), and then the connections are accepted with accept(2). The listen() call applies only to sockets of
type SOCK_STREAM or SOCK_SEQPACKET.
The backlog parameter defines the maximum length the queue of pending connections may grow to. 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.
RETURN VALUES
A 0 return value indicates success; -1 indicates an error.
ERRORS
listen() will fail if:
[EBADF] The argument s is not a valid descriptor.
[ENOTSOCK] The argument s is not a socket.
[EOPNOTSUPP] The socket is not of a type that supports the operation listen().
SEE ALSO
accept(2), connect(2), socket(2)
HISTORY
The listen() function call appeared in 4.2BSD.
BUGS
The backlog is currently limited (silently) to 128.
BSD
December 11, 1993 BSD