Methods Summary |
---|
public com.sun.kvem.jsr082.obex.ObexTransport | acceptAndOpen()Accepts new tcpobex transport connection.
StreamConnection conn = serverSocket.acceptAndOpen();
Object[] param = new Object[3];
param[0] = conn.openInputStream();
param[1] = conn.openOutputStream();
param[2] = null; // close the connection now
conn.close();
return createTransportConnection(param);
|
public synchronized void | close()Closes the underlaying tcp/socket notifier.
if (!isClosed) {
isClosed = true;
serverSocket.close();
}
|
protected TCPOBEXConnection | createTransportConnection(java.lang.Object[] sockData)Creates TCP OBEX transport connection.
return new TCPOBEXConnection(sockData);
|
public javax.microedition.io.Connection | getUnderlyingConnection()Gets underlying connection.
return null;
|