Re: socket recive problem

Shlomi Fish <[email protected]>
Newsgroups gmane.comp.lang.perl.beginners
Message-ID <[email protected]>
On Fri, 2 Apr 2021 13:46:35 -0400
Uri Guttman <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.