Michdd Posted September 5, 2009 Share Posted September 5, 2009 Using socket_create_listen, or whatever other socket functions.. how would I actually know when a client connects? Link to comment https://forums.phpfreaks.com/topic/173197-socket_create_listen/ Share on other sites More sharing options...
Michdd Posted September 5, 2009 Author Share Posted September 5, 2009 Anyone? I can't seem to find anything on this. Link to comment https://forums.phpfreaks.com/topic/173197-socket_create_listen/#findComment-913231 Share on other sites More sharing options...
bundyxc Posted September 5, 2009 Share Posted September 5, 2009 Maybe a socket_getpeername? Return values might be a hint on whether or not somebody has connected. Link to comment https://forums.phpfreaks.com/topic/173197-socket_create_listen/#findComment-913304 Share on other sites More sharing options...
corbin Posted September 5, 2009 Share Posted September 5, 2009 socket_accept It will return a resource pointing to a client socket. And the function blocks until a connection is accepted. (In other words, it won't return until someone connects to it.) Link to comment https://forums.phpfreaks.com/topic/173197-socket_create_listen/#findComment-913351 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.