|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RawUdpServerDepot
Interface for accessing sessions/sockets in the class for keeping track of such things.
| Method Summary | |
|---|---|
void |
addError(String id,
String msg)
Adds an error. |
void |
addSocket(String id,
Socket sock)
Adds the specified socket to the depot. |
Collection<String> |
getIds()
Get all IDs of current sessions. |
Socket |
getSocket(String id)
Accessor for the Socket with the specified ID. |
long |
read(String id,
OutputStream outputStream,
int length)
|
org.json.simple.JSONObject |
toJson()
|
void |
write(String id,
byte[] data)
|
long |
write(String id,
InputStream is,
long contentLength)
|
| Methods inherited from interface org.littleshoot.util.SessionSocketListener |
|---|
onSocket, reconnected |
| Method Detail |
|---|
Socket getSocket(String id)
Socket with the specified ID.
id - The ID of the socket we're looking for.
Socket.Collection<String> getIds()
void addSocket(String id,
Socket sock)
id - The ID for the socket.sock - The Socket to add.
void addError(String id,
String msg)
id - The ID for the session.msg - The error message.org.json.simple.JSONObject toJson()
long write(String id,
InputStream is,
long contentLength)
throws IOException
IOException
void write(String id,
byte[] data)
throws IOException
IOException
long read(String id,
OutputStream outputStream,
int length)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||