*/ 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(); }