snapshot work toward getting networking done.

This commit is contained in:
ehouse 2010-01-26 14:46:48 +00:00
parent 90f93aefa8
commit c682a7caac
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,5 @@
package org.eehouse.android.xw4.jni;
public class CommsAddrRec {
}

View file

@ -2,4 +2,31 @@
package org.eehouse.android.xw4.jni;
public interface TransportProcs {
int transportSend( byte[] buf, int len, final CommsAddrRec addr );
public static final int COMMS_RELAYSTATE_UNCONNECTED = 0;
public static final int COMMS_RELAYSTATE_DENIED = 1;
public static final int COMMS_RELAYSTATE_CONNECT_PENDING = 2;
public static final int COMMS_RELAYSTATE_CONNECTED = 3;
public static final int COMMS_RELAYSTATE_RECONNECTED = 4;
public static final int COMMS_RELAYSTATE_ALLCONNECTED = 5;
void relayStatus( int newState );
void relayConnd( boolean allHere, int nMissing );
public static enum XWRELAY_ERROR { NONE
,OLDFLAGS
,BADPROTO
,RELAYBUSY
,SHUTDOWN
,TIMEOUT
,HEART_YOU
,HEART_OTHER
,LOST_OTHER
,OTHER_DISCON
,NO_ROOM
,DUP_ROOM
,TOO_MANY
};
void relayErrorProc( XWRELAY_ERROR relayErr );
}