Jump to content

ioctl like function in php for sockets


kushal4

Recommended Posts

Hi,
Is there any api function in php which whould tell how the length of packet recieved by the socket?
For example there is an api function in C linux which ioctl() which returns the length of the packet recieved by the socket.
Thanks

Link to comment
Share on other sites

What i mean is  i dont want to hardcode the value in socket_read() or any socket api function.First i want to know the length of the data which the socket has recieved and accordingly i want to perform socket_read()  based on that length.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.