| |
|
| java.lang.Object org.datashare.SocketAdapter
All known Subclasses: org.datashare.UdpSocket, org.datashare.TcpSocket, org.datashare.MultiCastSocket,
SocketAdapter | abstract public class SocketAdapter (Code) | | |
admin | protected boolean admin(Code) | | |
localPort | protected int localPort(Code) | | |
remotePort | protected int remotePort(Code) | | |
SocketAdapter | SocketAdapter()(Code) | | constructor for abstract class
|
close | abstract void close()(Code) | | close the socket, stop any threads, and inform the server
|
getActive | boolean getActive()(Code) | | returns true if client has provided its clientKey (so we know who this connection is for)
|
getAdmin | boolean getAdmin()(Code) | | returns true if client has admin privileges, default if false
|
getClientClass | String getClientClass()(Code) | | retrieves this sockets client class
|
getClientKey | String getClientKey()(Code) | | retrieves this sockets client key
|
getCreationDate | Date getCreationDate()(Code) | | returns the data/time this socket was established
|
getKeyValue | String getKeyValue()(Code) | | retrieves this sockets key
|
getLocalIP | InetAddress getLocalIP()(Code) | | retrieves the local address for this connection
|
getLocalPort | int getLocalPort()(Code) | | retrieves the local port for this connection
|
getRemoteIP | InetAddress getRemoteIP()(Code) | | retrieves the remote IP address for this connection
|
getRemotePort | int getRemotePort()(Code) | | retrieves the remote port for this connection
|
getType | abstract int getType()(Code) | | returns the type for this instance, should come from the selections in ChannelDescription class
|
sendData | abstract void sendData(DataShareObject dsObject)(Code) | | call this method when data is to be sent over this connection,
this will buffer the data and schedule it for transmission
|
setActive | void setActive(boolean active)(Code) | | set to true if the client has sent its client key for this connection
|
setAdmin | void setAdmin(boolean admin)(Code) | | set to true if the client has admin privileges
|
setClientClass | void setClientClass(String clientClass)(Code) | | sets the clientClass (if param is not blank)
|
setClientKey | void setClientKey(String clientKey)(Code) | | sets the clientKey (if param is not blank)
|
setKeyValue | void setKeyValue(String keyValue)(Code) | | sets the keyValue (but only if the parameter is not blank)
|
setLocalIP | void setLocalIP(InetAddress localIP)(Code) | | sets the local IP for this connection
|
setLocalPort | void setLocalPort(int localPort)(Code) | | sets the local port for this connection
|
setRemoteIP | void setRemoteIP(InetAddress remoteIP)(Code) | | sets the remote IP for this connection
|
setRemotePort | void setRemotePort(int remotePort)(Code) | | sets the remote port for this connection
|
xmitData | abstract void xmitData(DataShareObject dsObject)(Code) | | this is the method that actually sends the data
|
|
|
|