Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: sysread/syswrite wrappers

by choroba (Archbishop)
on Oct 12, 2016 at 11:57 UTC ( #1173828=note: print w/replies, xml ) Need Help??


in reply to sysread/syswrite wrappers

Reminds me of my struggles with A Game Using TCP Sockets. I haven't seen the code fore several years, so it might me only tangentially relevant, I definitely don't remember using EINTR.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: sysread/syswrite wrappers
by vsespb (Chaplain) on Oct 12, 2016 at 12:58 UTC
    Yep, that your post links to my post written at y2010. Well, that time it was surprise for me that I should use syswrite and cannot use, say, eof(), but now it's not surprise, I know how to workaround this and everything works on production and well tested. But now I wondering why nobody else inventing wrappers for sysread and maybe there is simplier way..

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1173828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2019-12-05 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (151 votes). Check out past polls.

    Notices?