mixed strings

From: Date: Sat, 18 Dec 2004 19:00:45 +0000
Subject: mixed strings
Groups: php.general 
Request: Send a blank email to php-general+get-204658@lists.php.net to get a copy of this message
Hi All, I'm wondering if anyone knows if there's a way of sending strings of mixed type to a UDP socket. I'm storing the data I need to send in an array. Parsing the array with a foreach, I'm sending out the various pieces to the socket with fwrite. Unfortunately, it seems that UDP terminates each message and the client is expecting everything in one chunk with each byte of a specific type (ie. ASCII, INTEGER, BCD) Is there any way I can write a string of mixed types to an open UDP socket as a single message? Ian

« previous php.general (#204658) next »