|
|
| Just another Perl shrine | |
| PerlMonks |
Re^2: No data received on client socketby ikegami (Pope) |
| on Sep 21, 2006 at 15:52 UTC ( #574169=note: print w/ replies, xml ) | Need Help?? |
|
Which change fixed it? Did using while (<FH>) or fixing the options passed to the constructor fix it? SOCK_STREAM is 1, but 'SOCK_STREAM' probably got treated as 0. If that's the problem, you should go back to using sysread/syswrite. By the way, what's with local *FH = $oSocket;? Everywhere you use FH, you can put $oSocket. (e.g. print $oSocket ..., while (<$oSocket>), sysread($oSocket, ...), etc)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||