Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

synchronized void com::trilead::ssh2::Connection::sendIgnorePacket ( byte[]  data ) throws IOException [inline]

Send an SSH_MSG_IGNORE packet with the given data attribute.

This method must only be called once the connection is established.

Exceptions:
IOException

Definition at line 1075 of file Connection.java.

      {
            if (data == null)
                  throw new IllegalArgumentException("data argument must not be null.");

            if (tm == null)
                  throw new IllegalStateException(
                              "Cannot send SSH_MSG_IGNORE packet, you need to establish a connection first.");

            PacketIgnore pi = new PacketIgnore();
            pi.setData(data);

            tm.sendMessage(pi.getPayload());
      }

Generated by  Doxygen 1.6.0   Back to index