예제 #1
0
 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);
 }
예제 #2
0
 public short getConnectionID() {
   if (proxy != null) return ((short) proxy.getConnectionID(this));
   else return ((short) 0);
 }