and the expected value for nlen (before ntohl) is 285212672.
Replace your (wrongly coded) htonl() with pack( 'l>', $num ). It is all you need.
In reply to Re: Problem Transmitting Data via TCP/IP
by BrowserUk
in thread Problem Transmitting Data via TCP/IP
by scorpio17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |