java.lang.Object
java.net.Socket
cryptix.sasl.rmi.SaslSocket
- public class SaslSocket
- extends java.net.Socket
This class implements client sockets (also called just "sockets"). A socket
is an endpoint for communication between two machines.
- Version:
- 1.0
Fields inherited from class java.net.Socket |
|
Constructor Summary |
SaslSocket()
No-arguments constructor --for server-side. |
SaslSocket(java.lang.String host,
int port)
Constructs a SaslSocket given a host and a port --for client-side. |
Methods inherited from class java.net.Socket |
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString |
cat
private static org.apache.log4j.Category cat
secureIn
private java.io.InputStream secureIn
secureOut
private java.io.OutputStream secureOut
SaslSocket
public SaslSocket()
- No-arguments constructor --for server-side.
SaslSocket
public SaslSocket(java.lang.String host,
int port)
throws java.io.IOException
- Constructs a SaslSocket given a host and a port --for client-side.
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Returns this socket's input stream.
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Returns this socket's output stream.
close
public void close()
throws java.io.IOException
- Flushes the output stream before closing the socket.
setSecureInputStream
public void setSecureInputStream(java.io.InputStream in)
setSecureOutputStream
public void setSecureOutputStream(java.io.OutputStream out)