Re: To pack(), or not to pack()
| From: | Curt Zirzow | Date: | Mon, 10 May 2004 20:01:25 +0000 |
| Subject: | Re: To pack(), or not to pack() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185845@lists.php.net to get a copy of this message | ||
* Thus wrote Ren Fournier (m5@renefournier.com):
> Hi,
>
> I'm developing a PHP program that must send data, over a socket
> connection, to a server. The server requires the data in a particular
> format, e.g.:
>
> FORMAT:
> 3-byte delimiter - Message Length (N = 4 bytes) - Message Type (4
> bytes) - Message Body (N - 4 bytes) - 3-byte Delimiter
>
> SAMPLE MESSAGE:
> STX00110018Hello WorldENX
From the looks of this you wont need to use pack().
Curt
--
"I used to think I was indecisive, but now I'm not so sure."