|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttcl.lang.ServerSocketChannel
public class ServerSocketChannel
The ServerSocketChannel class implements a channel object for ServerSocket connections, created using the socket command.
Field Summary | |
---|---|
protected boolean |
blocking
Set to false when channel is in non-blocking mode. |
protected int |
buffering
Buffering (full,line, or none) |
protected int |
bufferSize
Buffer size, in bytes, allocated for channel to store input or output |
protected int |
bytesPerChar
|
protected java.lang.String |
encoding
Name of Java encoding for this Channel. |
protected tcl.lang.TclInputStream |
input
Tcl input and output objecs. |
protected char |
inputEofChar
If nonzero, use this as a signal of EOF on input. |
protected int |
inputTranslation
Translation mode for end-of-line character |
protected int |
mode
The read, write, append and create flags are set here. |
protected tcl.lang.TclOutputStream |
output
|
protected char |
outputEofChar
If nonzero, append this to a writeable channel on close. |
protected int |
outputTranslation
|
protected int |
refCount
How many interpreters hold references to this IO channel? |
Constructor Summary | |
---|---|
ServerSocketChannel(Interp interp,
java.lang.String localAddr,
int port,
TclObject callback)
Creates a new ServerSocketChannel object with the given options. |
Method Summary | |
---|---|
protected void |
checkRead(Interp interp)
|
protected void |
checkWrite(Interp interp)
|
protected java.io.InputStream |
getInputStream()
This method should be overridden in the subclass to provide a channel specific InputStream object. |
protected java.io.OutputStream |
getOutputStream()
This method should be overridden in the subclass to provide a channel specific OutputStream object. |
protected void |
initInput()
Setup the TclInputStream on the first call to read |
protected void |
initOutput()
Setup the TclOutputStream on the first call to write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int mode
protected int refCount
protected tcl.lang.TclInputStream input
protected tcl.lang.TclOutputStream output
protected boolean blocking
protected int buffering
protected int bufferSize
protected java.lang.String encoding
protected int bytesPerChar
protected int inputTranslation
protected int outputTranslation
protected char inputEofChar
protected char outputEofChar
Constructor Detail |
---|
public ServerSocketChannel(Interp interp, java.lang.String localAddr, int port, TclObject callback) throws TclException
TclException
Method Detail |
---|
protected java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
protected java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
protected void initInput() throws java.io.IOException
java.io.IOException
protected void initOutput() throws java.io.IOException
java.io.IOException
protected void checkRead(Interp interp) throws TclException
TclException
protected void checkWrite(Interp interp) throws TclException
TclException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |