protected void writeToSocket(Socket sock,TcpDiscoveryAbstractMessage msg,long timeout) throws IOException, IgniteCheckedException {
  writeToSocket(sock,new BufferedOutputStream(sock.getOutputStream(),sock.getSendBufferSize()),msg,timeout);
}

protected void writeToSocket ( Socket sock , TcpDiscoveryAbstractMessage msg , long timeout ) throws IOException , IgniteCheckedException { writeToSocket ( sock , new BufferedOutputStream ( sock . getOutputStream ( ) , sock . getSendBufferSize ( ) ) , msg , timeout ) ; }
writes message to the socket .
