/**
  * @expectedException LogicException
  */
 public function testWriteAfterCloseErrors()
 {
     $socket = new UdpSocket('127.0.0.1', 514);
     $socket->close();
     $socket->write('foo', "HEADER");
 }
示例#2
0
 /**
  * @return null
  */
 public function close()
 {
     $this->_socket->close();
 }