in reply to More sockets (sob!)
Got incoming length: Conn
Take a look at this:
print unpack"l","Conn";
I get 1852731203. Trying to allocate a buffer of that many bytes is surely the cause of your "Out of memory" error.
You aren't writing the length of the message. Something like:
- tye (but my friends call me "Tye")$message="Connect!!"; my $len= pack("l",length($message)); $bytes_sent = syswrite( $main_socket, $len.$message );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: More sockets (sob!)
by swiftone (Curate) on Sep 11, 2000 at 20:08 UTC | |
by tye (Sage) on Sep 11, 2000 at 20:21 UTC | |
by swiftone (Curate) on Sep 11, 2000 at 20:32 UTC |