
Cleaned up a lot of the code Added API documentation Fixed some unit tests Much cleaning left to be done
19 lines
289 B
PHP
19 lines
289 B
PHP
<?php
|
|
namespace Ratchet;
|
|
|
|
interface SocketInterface {
|
|
/**
|
|
* @param string
|
|
* @param int
|
|
*/
|
|
function write($buffer, $length = 0);
|
|
|
|
/**
|
|
* @param string
|
|
* @param int
|
|
* @param int
|
|
*/
|
|
function recv(&$buf, $len, $flags);
|
|
|
|
function close();
|
|
} |