I am new to php sockets. I am trying to make a multi user server
that will communicate with hundreds of clients. The problem is
the data I am trying to receive is using hex values. When the code
i am using receives a 0x00, 0x0A or 0x0D the socket_read functions terminate
the read and start a new read cycle. The data will be receiving is less then
255 character in length. I do need TCP communication.😕
$socket = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
$address = '127.0.0.1';
$port = 2525;
socket_set_option($socket,SOL_SOCKET,SO_REUSEADDR,1);
socket_bind($socket,$address,$port);
I believe I must have a setting wrong. There is really no good socket
documentations. If some knows a good source for socket info or could
give me a small example of code that would be able to handle hex
data that would be great.
Thanks