Jump to content


Non-blocking sockets

  • Please log in to reply
No replies to this topic

#1 LimpCheese

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 October 2006 - 06:18 PM

Can someone show me an example of how to create a non-blocking socket for a SOCKET_STREAM over tcp. When I use the following code I get "A non-blocking operation could not be completed immediately." error. Thank in advance.

        $socket = socket_create(AF_INET, SOCK_RAW, SOL_TCP);
	socket_connect($socket,"news.csh.rit.edu",119); //ERROR OCCURS ON THIS LINE
	echo $buf;

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users