E
Eckstein C.
I want to know if it's possible to have a listening TCP socket (I'm
using IO::Socket::INET), that only expects one client, to instead of
using
my $client = $listen_sock->accept();
and
$client->recv($data, 1024);
as you would normally do, and instead, just do a
$listen_sock->recv($data, 1024)
on the listening socket?
This works for UDP (I know I know, UDP is connectionless) and I've bene
able to do things this way in other langs before, that let you either go
the "accept/client" route or "read from socket", 1:1 listen setup.
So basically I just want a simple 1:1 setup.
Thank you.
using IO::Socket::INET), that only expects one client, to instead of
using
my $client = $listen_sock->accept();
and
$client->recv($data, 1024);
as you would normally do, and instead, just do a
$listen_sock->recv($data, 1024)
on the listening socket?
This works for UDP (I know I know, UDP is connectionless) and I've bene
able to do things this way in other langs before, that let you either go
the "accept/client" route or "read from socket", 1:1 listen setup.
So basically I just want a simple 1:1 setup.
Thank you.