Jump to content

Read socket until \n, NOT until an amount of data is recived...


aximbigfan

Recommended Posts

I am having a problem with a php socket server I have.

 

I want to do a socket_read until an \n, but I don't see any way to do this. PHP wants an amount of data to read, but I can't do that because the data to read may be lots more then the limit.

 

If I could just get EVERYTHING in the unread "buffer" then that would work too. I just don't want the server to terminate the connection because of the receive limit.

 

Thanks,

Chris

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.