public void send ( String message ) throws IOException { buf . setString ( message ) ; DatagramPacket packet = new DatagramPacket ( buf . getByteArray ( ) , buf . length ( ) , host , port ) ; socket . send ( packet ) ; }
Sends a message to SServer .