sleep.bridges.io
Class SocketObject
java.lang.Object
sleep.bridges.io.IOObject
sleep.bridges.io.SocketObject
public class SocketObject
- extends IOObject
Methods inherited from class sleep.bridges.io.IOObject |
getBuffer, getConsole, getInputBuffer, getInputStream, getOutputStream, getReader, getThread, getToken, getWriter, isEOF, openRead, openWrite, print, printLine, readCharacter, readLine, sendEOF, setEncoding, setThread, setToken, wait |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
protected java.net.Socket socket
LISTEN_FUNCTION
public static final int LISTEN_FUNCTION
- See Also:
- Constant Field Values
CONNECT_FUNCTION
public static final int CONNECT_FUNCTION
- See Also:
- Constant Field Values
SocketObject
public SocketObject()
getSource
public java.lang.Object getSource()
- returns the socket used for this connection
- Overrides:
getSource
in class IOObject
open
public void open(SocketObject.SocketHandler params,
ScriptEnvironment env)
release
public static void release(int port)
- releases the socket binding for the specified port
listen
public void listen(SocketObject.SocketHandler params,
ScriptEnvironment env)
close
public void close()
- Description copied from class:
IOObject
- Closes all of the reader's / writer's opened by this IOObject. If the IO Source object opens any streams, this method should be overriden to close those streams when requested. Calling super.close() is highly recommended as well.
- Overrides:
close
in class IOObject