Hello,
I am trying to send some hex bytes to a remote socket to switch off a display. I have a java applet which is able to switch off the display by opening a socket. I have tried creating a socket in php and writing the bytes but its doesn't work.
I have captured with wireshark with each program does and the php program sends multiple frames where as the java one just sends one.
I have attached both wireshark capture files (remove the .txt suffix) and my php code. I am using a wxbinder with my php code which explains some of the functions. The java applet & source code can be found here http://networktools.sourceforge.net/
Is there any way I can use php to send exactly the same frames / packets as the java applet?
If you need any more info please ask
Thanks,
Dan
from networktools.txt
from php app.txt
php-socket.txt