src/mg/Ding/Helpers/Tcp/TcpPeer.php
public function write($what)
    {
        $ret = null;
        if ($this->isConnected()) {
            $ret = @socket_send($this->socket, $what, strlen($what), 0);
        }
        return $ret;
    }
public function write($what)
    {
        $ret = null;
        if ($this->isConnected()) {
            $ret = @socket_send($this->socket, $what, strlen($what), 0);
        }
        return $ret;
    }
Writes to this peer.

@param string $what What to write.

@return integer