public void write(ONL.Writer wrtr) throws java.io.IOException { wrtr.writeString(host); wrtr.writeInt(port); short cid = 0; if (proxy != null) cid = proxy.getConnectionID(this); wrtr.writeShort(cid); }
public short getConnectionID() { if (proxy != null) return ((short) proxy.getConnectionID(this)); else return ((short) 0); }