This repository has been archived on 2018-04-01. You can view files and clone it, but cannot push or open issues or pull requests.
php-asio/stubs/Socket.php

42 lines
788 B
PHP

<?php
/**
* php-asio/stubs/Socket.php
*
* This file is a stub of php-asio, which is implemented in extension asio.so.
* For source code of asio.so, see src/ directory.
*
* @author CismonX<admin@cismon.net>
*/
namespace Asio;
/**
* Interface Socket
*
* @package Asio
*/
interface Socket extends IoObject
{
/**
* Determine the number of bytes available for reading.
*
* @param int $ec[optional] : Error code
* @return int
*/
function available(int &$ec);
/**
* Determine whether the socket is at the out-of-band data mark.
*
* @param int $ec[optional] : Error code
* @return bool
*/
function atMark(int &$ec);
/**
* Close socket.
*
* @return int : Error code
*/
function close();
}