Hi all,

I tried to make two programms communicate with each other. I have tried with 
IO::Socket, the most used Module I think, and with Net::TCP.
There are two possibilities, the first is that my brain is too small to get the way 
these modules run, the second is that I forget a few things
while programming.
My Problem is very easy, I want to send some strings or charakters between four PCs. 
But I don't get any connection even on one to himself.
What is wrong with this program?

#client:
use Net::TCP;

my $socket = Net::TCP->new(1234);

$socket->send("127.0.0.1", "foobar");

####

#server:
use Net::TCP;

my $socket = Net::TCP->new(1234);

if ($in = $socket->accept) {print $in->recv, "\n";}

####

The server does not print anything.

Thanks for all ideas
Karsten


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to