|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Server
Server API for communicating with Client.
| Method Summary | |
|---|---|
java.io.OutputStream |
getOutputStream(Context connection)
If a server wants to write to a specific connection. |
java.io.OutputStream |
getOutputStream(java.nio.channels.SelectionKey connection)
If a server wants to write to a specific connection. |
void |
service(java.io.InputStream inputStream,
ProtocolOutputStream outputStream,
java.lang.Integer SessionId,
java.lang.Object serverContext)
Gets called when Client calls this server. |
void |
start()
Inits and starts Server |
void |
stop()
Stops Server |
| Method Detail |
|---|
java.io.OutputStream getOutputStream(Context connection)
connection - in the momment should be a Context
java.io.OutputStream getOutputStream(java.nio.channels.SelectionKey connection)
connection - in the momment should be a SelectionKey
void service(java.io.InputStream inputStream,
ProtocolOutputStream outputStream,
java.lang.Integer SessionId,
java.lang.Object serverContext)
Client calls this server.
This may be done by Client.callRemote() or
Client.getOutputStream()
inputStream - bytes received from clientoutputStream - bytes that server wants to replySessionId - (can be null) if client has added an session idserverContext - Probably Context gives Server access to Transport
frameworkvoid start()
void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||