Re: [PHP] Sending messages from php to C++ application via UDP socket

2011-05-19 Thread shiplu
On Thu, May 19, 2011 at 3:14 PM, Richard Quadling wrote: > On 18 May 2011 18:03, shiplu wrote: > > Try to think a string is an array of bytes. > > Parse that array of bytes at C++ end. > > There should host to network and network to host data conversion > function. > > Use them. > > > > -- > > Sh

Re: [PHP] Sending messages from php to C++ application via UDP socket

2011-05-19 Thread Richard Quadling
On 18 May 2011 18:03, shiplu wrote: > Try to think a string is an array of bytes. > Parse that array of bytes at C++ end. > There should host to network and network to host data conversion function. > Use them. > > -- > Shiplu Mokadd.im > Just to confirm Sniplu's comment really. For example (see

Re: [PHP] Sending messages from php to C++ application via UDP socket

2011-05-18 Thread shiplu
Try to think a string is an array of bytes. Parse that array of bytes at C++ end. There should host to network and network to host data conversion function. Use them. -- Shiplu Mokadd.im

Re: [PHP] Sending messages from php to C++ application via UDP socket

2011-05-18 Thread Stuart Dallas
On Wed, May 18, 2011 at 3:16 PM, Schlager, Christian wrote: > > > Hello, > > I am a first-time poster. I hope this is the proper way to ask my question: > > I have a C++ media player application that I want to control via a php > website. > To that end the application has an UDP socket listening f

[PHP] Sending messages from php to C++ application via UDP socket

2011-05-18 Thread Schlager, Christian
Hello, I am a first-time poster. I hope this is the proper way to ask my question: I have a C++ media player application that I want to control via a php website. To that end the application has an UDP socket listening for Player messages. In C++ player messages have the following members: cla