final public function socketAccept($socket = null)
	{
		if (is_resource($socket)) {
			$this->socket = socket_accept($socket);
			return $this->socket;
		} else {
			throw new InvalidArgumentException(__METHOD__ . ' expects $socket to be an instance of resource. ' . gettype($resource) . ' given instead');
		}
	}
final public function socketAccept($socket = null)
	{
		if (is_resource($socket)) {
			$this->socket = socket_accept($socket);
			return $this->socket;
		} else {
			throw new InvalidArgumentException(__METHOD__ . ' expects $socket to be an instance of resource. ' . gettype($resource) . ' given instead');
		}
	}
final public function socketAccept ( $ socket = null ) { if ( is_resource ( $ socket ) ) { $ this -> socket = socket_accept ( $ socket ) ; return $ this -> socket ; } else { throw new InvalidArgumentException ( __METHOD__ . ' expects $socket to be an instance of resource. ' . gettype ( $ resource ) . ' given instead' ) ; } }
Creates a client side sockets from a server side one

@param resource $socket Socket created through socket_create
@return resource
Creates a client side sockets from a server side one