Ian Firla wrote: > 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. fwrite converts your input to string. Check the arg-list at: http://php.net/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? I doubt it. Write an encoder/decoder to go from your internal data structure to string and back. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php