On Fri, 2 Apr 2021 13:46:35 -0400
Uri Guttman <u...@stemsystems.com> wrote:

> On 4/2/21 4:47 AM, stefano cerbioni wrote:
> > hi i try to recive  a stream string  by  a client (write in C++) , if 
> > i use netcat ,  work ok but  when i use a  script in perl work 
> > partially , recive "Connection recieved from $name\n";,  but  $name 
> > is  blank , why ?? thanks
> > this is a script
> >  
> 
> don't use low level socket stuff as it is tricky to get correct. use the 
> IO::Socket module as it is correct and very easy to use.
> 

I agree. See:

* https://perl-begin.org/uses/multitasking/ ( IO::Async / etc.)

* https://metacpan.org/pod/IO::Socket and
https://metacpan.org/pod/IO::Socket::IP .

> uri
> 
> 



-- 

Shlomi Fish       https://www.shlomifish.org/
Emma Watson Factoids - https://shlom.in/emwatson-facts

Sarah: Tell you what, Ken? Why not come to the diner, and I’ll pay for your
food and drinks. I’ve been earning quite a lot of cash from tips. You can tell
us stories from this dimension of evil of yours.
    — https://www.shlomifish.org/humour/Buffy/A-Few-Good-Slayers/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to