|
||||||||||
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 | |
---|---|
OutputStream |
getOutputStream(Context connection)
If a server wants to write to a specific connection. |
OutputStream |
getOutputStream(SelectionKey connection)
If a server wants to write to a specific connection. |
void |
service(InputStream inputStream,
ProtocolOutputStream outputStream,
Integer SessionId,
Object serverContext)
Gets called when Client calls this server. |
void |
start()
Inits and starts Server |
void |
stop()
Stops Server |
Method Detail |
---|
OutputStream getOutputStream(Context connection)
connection
- in the momment should be a Context
OutputStream getOutputStream(SelectionKey connection)
connection
- in the momment should be a SelectionKey
void service(InputStream inputStream, ProtocolOutputStream outputStream, Integer SessionId, 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 |