sleep.bridges.io

Class SocketObject

public class SocketObject extends IOObject

Field Summary
protected Socketsocket
Method Summary
voidclose()
ObjectgetSource()
returns the socket used for this connection
voidlisten(int port, int timeout, Scalar data, ScriptEnvironment env)
voidopen(String server, int port, int timeout, ScriptEnvironment env)
static voidrelease(int port)
releases the socket binding for the specified port

Field Detail

socket

protected Socket socket

Method Detail

close

public void close()

getSource

public Object getSource()
returns the socket used for this connection

listen

public void listen(int port, int timeout, Scalar data, ScriptEnvironment env)

open

public void open(String server, int port, int timeout, ScriptEnvironment env)

release

public static void release(int port)
releases the socket binding for the specified port