in reply to problem with UNIX Domain sockets
The socket isn't created because the parameter name is Local, not LocalAddr. It should be:
my $server = IO::Socket::UNIX->new( Local => '/tmp/mysock' ) or die $! +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem with UNIX Domain sockets
by zenith007 (Initiate) on Dec 21, 2009 at 12:41 UTC | |
I am facing with another problem .I want to communicate between two process using sockets.One of those process is a C program(client) and another is a perl script(server).I am able to send messages from client, but some how I am unbale to recieve those messages at server side. Please correct me where I am going wrong ? Thanks Zebith | [reply] [d/l] |
by gmargo (Hermit) on Dec 21, 2009 at 13:51 UTC | |
First of all, please don't delete your original post. The thread will make little sense in the future without it. Second of all, you again have a datagram vs. stream problem. The connect() is to connect to a TCP server, but you are running a UDP server. A UDP client just creates the socket and starts sending. This may help: http://www.prasannatech.net/2008/07/socket-programming-tutorial.html This gentleman has provided simple examples of TCP and UDP servers and clients in C, Perl, Python, and Java. | [reply] [d/l] |