Sponsored Content
Full Discussion: bind() error
Special Forums IP Networking bind() error Post 22622 by mojomonkeyhelper on Thursday 6th of June 2002 04:15:34 PM
Old 06-06-2002
Sorry m8 i am a little rusty on server programming but what port are u telling the server to bind to..??
U must bind it to a well know unreserved port greater than 1024
Sorry of i got this wrong but you would want to set up a portbase to connect to a porrt greater than 1024..
Have a look at comver voulume 3 C/S Programming *Excellent*
That will show u.!!


Mojo
 

8 More Discussions You Might Find Interesting

1. Programming

ldap bind error

hi Using C program i am trying to connect to ldap server i have used the method bind syntax : ldap_bind_s(ld,"cn=Manager,dc=example,dc=com","password") but it is not able to bind and giving error as error 2 :Historical protocol version required use ldapv3 instead do i need to add any... (2 Replies)
Discussion started by: mridula
2 Replies

2. Programming

how to solve error : Bind: Address Already in Use

hi i have created socket program with proper IP address and port no client side port no 1085 and 1086 gateway side port no 1086 and 1085 and port no 1087 and 1088 receiver side port no 1088 and 1087 well it works fine on client and gateway side not on receiver and gateway side... (2 Replies)
Discussion started by: bhakti
2 Replies

3. Solaris

bind error

Hi, When I use the ldapadd command I get this error. ldap_simple_bind: Conidentiality required ldap_simple_bind: additional info: confidentiality required I was able to use this command and the ldapsearch command yesterday just fine. I think I may have made a change to a file, but I don't... (2 Replies)
Discussion started by: bitlord
2 Replies

4. Solaris

rpc/bind maintanance error

My code Hi Folks, I am getting maintanance error for rpc/bind in one of solaris 10 server.I have tried disable,enabled,cleared all options and dont no how to make online.Please help me Please find the below for details :- Server1> svcs -a rpc/bind svcs: -a ignored when used with... (0 Replies)
Discussion started by: susindram
0 Replies

5. Programming

bind source

here is the bind source file for the client.c in bind9 logs are written in var/log/file name in the form 02-Aug-2012 15:43:12.713 client 192.168.2.4#47512: query: 209.236.125.74.in-addr.arpa IN PTR + (192.168.2.4) i am in a subnet of 10 systems through 192.168.2.1..10 i want to write logs based... (2 Replies)
Discussion started by: balvinder87
2 Replies

6. UNIX for Dummies Questions & Answers

Can't bind to IP

When you get the message can't bind to ip already in use. is there a command to search to see everything that is using that IP? I've already check the host and hostname files (2 Replies)
Discussion started by: mchelle_99
2 Replies

7. Red Hat

Bind (DNS) error on EL 6.4

Gurus I have configured bind 9 on Red hat EL 6.4, it can resolve from hostname i.e from domain name (like cnn.com, bbc.com)but through IP its shows following error. Need your expert opinion to solve it. error 84.23.97.31 Server: 192.168.31.24 Address: 192.168.31.24#53 ** server can't... (1 Reply)
Discussion started by: smazshah
1 Replies

8. UNIX for Advanced & Expert Users

Bind

Hi All I need to do bind of exiting filesystem to new storage allocated mount --bind /prod/OpenCSS /var/lib/test echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab will this command just work ? (2 Replies)
Discussion started by: anil529
2 Replies
Mojo::IOLoop::Server(3pm)				User Contributed Perl Documentation				 Mojo::IOLoop::Server(3pm)

NAME
Mojo::IOLoop::Server - Non-blocking TCP server SYNOPSIS
use Mojo::IOLoop::Server; # Create listen socket my $server = Mojo::IOLoop::Server->new; $server->on(accept => sub { my ($server, $handle) = @_; ... }); $server->listen(port => 3000); # Start and stop accepting connections $server->start; $server->stop; DESCRIPTION
Mojo::IOLoop::Server accepts TCP connections for Mojo::IOLoop. EVENTS
Mojo::IOLoop::Server can emit the following events. "accept" $server->on(accept => sub { my ($server, $handle) = @_; ... }); Emitted safely for each accepted connection. ATTRIBUTES
Mojo::IOLoop::Server implements the following attributes. "accepts" my $accepts = $server->accepts; $server = $server->accepts(10); Number of connections to accept at once, defaults to 10. "reactor" my $reactor = $server->reactor; $server = $server->reactor(Mojo::Reactor::Poll->new); Low level event reactor, defaults to the "reactor" attribute value of the global Mojo::IOLoop singleton. METHODS
Mojo::IOLoop::Server inherits all methods from Mojo::EventEmitter and implements the following new ones. "listen" $server->listen(port => 3000); Create a new listen socket. Note that TLS support depends on IO::Socket::SSL and IPv6 support on IO::Socket::INET6. These options are currently available: "address" Local address to listen on, defaults to all. "backlog" Maximum backlog size, defaults to "SOMAXCONN". "port" Port to listen on. "tls" Enable TLS. "tls_ca" Path to TLS certificate authority file. "tls_cert" Path to the TLS cert file, defaults to a built-in test certificate. "tls_key" Path to the TLS key file, defaults to a built-in test key. "generate_port" my $port = $server->generate_port; Find a free TCP port, this is a utility function primarily used for tests. "start" $server->start; Start accepting connections. "stop" $server->stop; Stop accepting connections. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::IOLoop::Server(3pm)
All times are GMT -4. The time now is 12:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy