public static function writeTo($host, $port, $text) { $client = new TcpClient($host, $port); $client->write($text); }