Re: socket recive problem
Raunak Kathuria <[email protected]>
| Newsgroups | gmane.comp.lang.perl.beginners |
|---|---|
| Message-ID | <CAEHnM2+9StXaOctdbsmAVELSBPx1sO4B9zE1ua_Q_Xz7dAL7OQ@mail.gmail.com> |
You can use https://gist.github.com/raunakkathuria/633f46222f7d3a40c2ecd0234e1cb3e0 as a reference example of socket connection using IO::Async::* Hope that's useful. On Mon, Apr 5, 2021 at 12:00 AM Shlomi Fish <[email protected]> wrote: > 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/ > > >