Jump to content

ioctl like function in php for sockets


Recommended Posts

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.

Edited by kushal4
don't do that highlighting thing
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

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.