}
public void oneway(Object command) throws IOException {
if (disposed.get()) {
throw new TransportDisposedIOException("Transport disposed.");
}
if (peer == null) {
throw new IOException("Peer not connected.");
}
try {
if (peer.disposed.get()) {
throw new TransportDisposedIOException("Peer (" + peer.toString() + ") disposed.");
}
if (peer.async || !peer.started.get()) {
peer.getMessageQueue().put(command);
peer.wakeup();