Hello ,
check if the server is running on that port no.
also check if the no. of requests has exceeded for the server. aka
where cs->socket descriptor
n->no. of permissible requests to be handled by the server concurrently.
run client through the gdb (whatever debugger the solaris is shipped with and "STEP" through the process)
I have client and server connected.
client write and read from csock.
server write and read from ssock
suppose the server does :
....
close(ssock); //send FIN to client
othertask();
....
READ ERROR
if after the server close() the client does:
...
read(csock,...);
...... (2 Replies)
Hi. um. I'm trying to make a LAMP server on Fedora 7, but When I try to turn Apache/Httpd on, it gives me this error:
# chkconfig -- levels 235 httpd on
# /etc/init.d/httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address 192.168.1.110.80
no listening... (8 Replies)
Hi,
I was porting ipv4 application to ipv6; i was done with TCP transports. Now i am facing problem with SCTp transport at runtime.
To test SCTP transport I am using following server and client socket programs. Server program runs fine, but client program fails giving Invalid Arguments for... (0 Replies)
Dear All,
I have server with SunOS 5.10 Generic_127111-06 sun4v sparc SUNW,SPARC-Enterprise-T5120, always coming out error message like this :
May 25 10:37:26 sshd: fatal: Read from socket failed: Connection reset by peer
So what happend with my server..???
Best Regards
Bejo :D (2 Replies)
All,
I'm getting the following error while I try to register the server to connect the redhat network for the updates.
rhn_register updateLoginInfo() login info
rhn_register A socket error occurred: (111, 'Connection refused'), attempt #1
rhn_register A socket error occurred: (111,... (6 Replies)
Hi - I am getting the error
`Error reading response length from authentication socket'
when I ssh from my cluster to another cluster, and then back to my cluster. It doesn't seem to affect anything, but it's just annoying that it always pops up and tends to confuse new users of the cluster. I... (1 Reply)
Why does this socket function only read the first 1440 chars of the stream. Why not the whole stream ? I checked it with gdm and valgrind and everything seems correct...
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include... (3 Replies)
Dear Experts,
i am compiling my code in suse 4.1 which is compiling fine,
but at runtime it is showing me for socket programming error no 88
as i searched in errno.h it is telling me socket operation on non socket,
what is the meaning of this , how to deal with this error , please... (1 Reply)
I need clarification on whether it is okay to set socket options on a listening socket
simultaneously when it is being used in an accept() call?
Following is the scenario:-
-- Task 1 - is executing in a loop - polling a listen socket, lets call it 'fd', (whose file descriptor is global)... (2 Replies)
Hi ,
I am getting error in bind function of "Address already in use" even also i have used the setsockopt function in that case .
Please help
int ret = 0;
int listenSock = 0;
struct sockaddr_in myAddr;
struct sockaddr_in ... (1 Reply)
Discussion started by: vipin auja
1 Replies
LEARN ABOUT DEBIAN
poe::component::ikc::server
IKC::Server(3pm) User Contributed Perl Documentation IKC::Server(3pm)NAME
POE::Component::IKC::Server - POE Inter-kernel Communication server
SYNOPSIS
use POE;
use POE::Component::IKC::Server;
POE::Component::IKC::Server->spawn(
ip=>$ip,
port=>$port,
name=>'Server');
...
$poe_kernel->run();
DESCRIPTION
This module implements a POE IKC server. A IKC server listens for incoming connections from IKC clients. When a client connects, it
negociates certain connection parameters. After this, the POE server and client are pretty much identical.
EXPORTED FUNCTIONS
"create_ikc_server"
Syntatic sugar for POE::Component::IKC::Server->spawn.
CLASS METHODS
"spawn"
This methods initiates all the work of building the IKC server. Parameters are :
"ip"
Address to listen on. Can be a doted-quad ('127.0.0.1') or a host name ('foo.pied.nu'). Defaults to '0.0.0.0', aka INADDR_ANY.
"port"
Port to listen on. Can be numeric(80) or a service ('http'). If undefined, will default to 603. If you set the port to 0, a random
port will be chosen and "spawn" will return the port number.
my $port = POE::Component::IKC::Server->spawn( port => 0 );
warn "Listeing on port $port";
"unix"
Path to the unix-socket to listen on. Note: this path is unlinked before socket is attempted! Buyer beware.
"name"
Local kernel name. This is how we shall "advertise" ourself to foreign kernels. It acts as a "kernel alias". This parameter is
temporary, pending the addition of true kernel names in the POE core. This name, and all aliases will be registered with the responder
so that you can post to them as if they were remote.
"aliases"
Arrayref of even more aliases for this kernel. Fun Fun Fun!
"verbose"
Print extra information to STDERR if true. This allows you to see what is going on and potentially trace down problems and stuff.
"processes"
Activates the pre-forking server code. If set to a positive value, IKC will fork processes-1 children. IKC requests are only serviced
by the children. Default is 1 (ie, no forking).
"babysit"
Time, in seconds, between invocations of the babysitter event.
"connections"
Number of connections a child will accept before exiting. Currently, connections are serviced concurrently, because there's no way to
know when we have finished a request. Defaults to 1 (ie, one connection per child).
"concurrency"
Number of simultaneous connected clients allowed. Defaults to 0 (unlimited).
Note that this is per-IKC::Server instance; if you have several ways of connecting to a give IKC server (for example, both an TCP/IP
port and unix pipe), they will not share the conncurrent connection count.
"protocol"
Which IKC negociation protocol to use. The original protocol ("IKC") was synchronous and slow. The new protocol ("IKC0") sends all
information at once. IKC0 will degrade gracefully to IKC, if the client and server don't match.
Default is IKC0.
"POE::Component::IKC::Server::spawn" returns "undef()", unless you specify a "port"=0, in which case, "spawn" returns the port that was
chosen.
EVENTS
shutdown
This event causes the server to close it's socket, clean up the shop and head home. Normally it is only posted from IKC::Responder.
BUGS
Preforking is something of a hack. In particular, you must make sure that your sessions will permit children exiting. This means, if you
have a delay()-loop, or event loop, children will not exit. Once POE gets multicast events, I'll change this behaviour.
AUTHOR
Philip Gwyn, <perl-ikc at pied.nu>
COPYRIGHT AND LICENSE
Copyright 1999-2011 by Philip Gwyn. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/language/misc/Artistic.html>
SEE ALSO
POE, POE::Component::IKC::Client
perl v5.12.4 2011-08-27 IKC::Server(3pm)