[Perl-unix-users] sysread, sockets, reading binary data

2001-11-19 Thread Jason Ostrom
Hello guys and girls, I am writing a TCP client program that connects to a server, sends binary data, and should receive a message back. The problem I have am having is on the receiving end. I was wondering if any of you have implemented something like this and may be able to help. I want the

RE: [Perl-unix-users] sysread, sockets, reading binary data

2001-11-20 Thread Jason Ostrom
ithin each message/data structure that is received so that each individual byte can be decoded. I'm getting closer but still not there yet. I'll play with it more and with what you said, and let you know what I find. But if you see anything that jumps out at you, please let me know.

[Perl-unix-users] SUMMARY: sysread, sockets, reading binary data

2001-12-07 Thread Jason Ostrom
Perl UNIX Wizards, Wanted to summarize what I found on this problem and post the code below, in the hopes that it helps others. A special thanks to Steve Aaron and Simon Wistow for their help. Original question is below the posted code. The question originally asked about a data structure for r

[Perl-unix-users] SUMMARY: sysread, sockets, reading binary data

2001-12-07 Thread Jason Ostrom
Perl UNIX Wizards, Wanted to summarize what I found on this problem and post the code below, in the hopes that it helps others. A special thanks to Steve Aaron and Simon Wistow for their help. Original question is below the posted code. The question originally asked about a data structure for r

[Perl-unix-users] Errors on socket, IO::Poll, IO::Select

2002-02-13 Thread Jason Ostrom
Hello, Has anyone used IO::Poll (or IO::Select) to detect when a networking socket has received a broken PIPE on the remote end, a hangup, or an error? I am trying to have my code check for a closed down socket on the remote end, and then reconnect. I would appreciate any feedback, as I am very