public interface SrvrChan extends TvOutput
The backchannel is the core of the EventWeb system. It provides the connection between a EventWeb server and a EventWeb client.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IF_VERSION
Interface version
|
Modifier and Type | Method and Description |
---|---|
int |
connect(SesnKey bcCliSesKey,
SesnKey bcSrvSesKey,
int mimeTypeId)
Accept a client connection.
|
int |
getMimeTypeId()
Get the channel MIME type.
|
int |
getPort()
Get the local port assigned to the channel.
|
java.io.BufferedReader |
getReader()
Get the channel reader.
|
TvList |
getRec()
Read a record from the channel.
|
TvReader |
getTvReader()
Get the channel tag-value reader.
|
TvWriter |
getTvWriter()
Get the channel tag-value writer.
|
java.io.PrintWriter |
getWriter()
Get the channel writer.
|
int getPort()
int connect(SesnKey bcCliSesKey, SesnKey bcSrvSesKey, int mimeTypeId) throws java.io.IOException
bcCliSesKey
- Client session keybcSrvSesKey
- Server session keymimeTypeId
- MIME type for communication on the channel.java.io.IOException
- If the connection fails at the TCP levelMimeType
int getMimeTypeId()
TvList getRec() throws java.io.IOException
java.io.IOException
- If the read failsTvReader getTvReader()
TvWriter getTvWriter()
java.io.BufferedReader getReader()
java.io.PrintWriter getWriter()