[375:14] (extern: com.lehman.aussom.AussomSslServerSocket) extends: object
The sslServerSocket class implements SSL server socket functionality.
sslServerSocket (int Port = 443, string KeyStoreFileName = "", string KeyStorePassword = "")
Constructor creates a new sslServerSocket object with the optional arguments.
Port is an int with the port number to bind to.KeyStoreFileName is a string with the keystore file to use.KeyStorePassword is a string with the keystore password to use.This object.newSslServerSocket (int Port = 443, string KeyStoreFileName = "", string KeyStorePassword = "")
bind (string Host = "localhost")
Binds the socket to a local interface with the provided host name.
Host is the host to bind to.This object.close ()
Closes the server socket.
This object.setReuseAddress (bool ReuseAddress)
Sets the reuse address flag.
ReuseAddress is a bool with the flag value.This object.setPerformancePreferences (int ConnectionTime, int Latency, int Bandwidth)
Sets the performance preferences. There are no max values here, they are just compared to each other.
ConnectionTime is an int with the connection time value.Latency is an int with the latency value.Bandwidth is an int with the bandwidth value.This object.setReceiveBufferSize (int RxBufferSize)
Sets the receive buffer size.
RxBufferSize is an int with the recieve buffer size.This object.setHost (string Host)
Sets the host name. Must be called prior to connect.
Host is a string with the host name to set.This object.setPort (int Port)
Sets the port number. Must be called prior to connect.
Port is an int with the port number to set.This object.setSoTimeout (int Timeout)
Sets the SO_TIMEOUT value in milliseconds. Must be called prior to connect.
Timeout is an int with the timeout to set.This object.setCiphers (list Ciphers)
Sets the list of ciphers to use.
Ciphers is a list of ciphers to use.This object.setProtocols (list Protocols)
Sets the list of protocols to use.
Protocols is a list of protocols.This object.setEnableSessionCreation (bool Val)
Sets the enable session creation flag.
Val is a bool with the flag to set.This object.setNeedClientAuth (bool Val)
Sets the need client auth flag.
Val is a bool with the flag to set.This object.setUseClientMode (bool Val)
Sets the use client mode flag.
Val is a bool with the flag to set.This object.setWantClientAuth (bool Val)
Sets the want client auth flag.
Val is a bool with the flag to set.This object.accept ()
Accepts a new connection and returns the socket. This may throw an IO excpetion if interrupted.
A sslSocket object.getHost ()
Gets the host.
A string with the host.getPort ()
Gets the port number.
An int with the port number.getReuseAddress ()
Gets the reuse address flag.
A bool with the reuse address flag.isBound ()
Gets the is bound status.
A bool with the is bound status.isClosed ()
Gets the is closed status.
A bool with the is closed status.getReceiveBufferSize ()
Gets the receive buffer size.
An int with the receive buffer size.getSoTimeout ()
Gets the SO_TIMEOUT in milliseconds value. Must be called prior to connect.
An int with the timeout milliseconds.getCiphers ()
Gets a list of the ciphers. Must be called prior to connect.
A list with the ciphers.getProtocols ()
Gets a list of protocols. Must be called prior to connect.
A list of protocols.getEnableSessionCreation ()
Gets the enable session creation flag.
A bool with the flag value.getNeedClientAuth ()
Gets the need client auth flag.
A bool with the flag value.getUseClientMode ()
Gets the use client mode flag.
A bool with the flag value.getWantClientAuth ()
Gets the want client auth flag.
A bool with the flag value.[32:6] static extends: object
Enum for sslSocket traffic classes.
[23:14] static extends: object
Module JAR loader class.
[42:14] (extern: com.lehman.aussom.AussomSslSocket) extends: object
The sslSocket class implements SSL socket support.
sslSocket (string Host = "", string Port = 443, bool AllowSelfSigned = false)
The constructor that takes defaulted arguments.
Host is an optional string with the host.Port is an optional int with the port number.AllowSelfSigned is an optional bool with the allow self signed flag.This object.newSslSocket (string Host = "", int Port = 443, bool AllowSelfSigned = false)
connect (string Host = "")
Connects to the socket to the server with the provided host.
Host is a string with the host to connect to.This object.bind (string Host = "localhost")
Binds the socket to a local address.
Host is the local address to bind to.This object.close ()
Closes the socket.
This object.setKeepAlive (bool KeepAlive)
Sets the keep alive flag.
KeepAlive is a bool with the keep alive flag.This object.setOOBInline (bool OOBInline)
Sets the SO_OOBINLINE (receipt of TCP urgent data) flag.
OOBInline is a bool with the flag.This object.setPerformancePreferences (int ConnectionTime, int Latency, int Bandwidth)
Sets the performance preferences. The values don't have a max, instead they are compared to each other.
ConnectionTime is an int with the connection time value.Latency is an int with the latency value.Bandwidth is an int with the bandwidth value.This object.setReceiveBufferSize (int RxBufferSize)
Sets the receive buffer size.
RxBufferSize is an int with the receive buffer size.This object.setReuseAddress (bool ReuseAddress)
Sets the reuse address flag.
ReuseAddress is a bool with the reuse address flag.This object.setSendBufferSize (int TxBufferSize)
Sets the send buffer size.
TxBufferSize is an int with the send buffer size.This object.setSoLinger (bool LingerOn, int LingerVal)
Sets the flag and the SO_LINGER val with the specified linger time in seconds.
LingerOn is a bool with the flag.LingerVal is an int with the value.This object.setTcpNoDelay (bool NoDelay)
Sets the TCP no delay flag.
NoDelay is a bool with the flag.This object.setTrafficClass (string TrafficClass)
Sets the traffic class. See the trafficClass enum for available options.
TrafficClass is a string with the traffic class to set.This object.writeln (string Line)
Writes the provided line to the socket.
Line is a string with the line to write.This object.write (string Str)
Writes the provided string to the socket.
Str is a string to write.This object.writeBytes (object Buff)
Writes the bytes in the provided Buffer to the socket.
Buff is a Buffer object to write.This object.writeBytesFrom (object Buff, int Index = 0, int Length = -1)
Writes bytes from the provided Buffer with the provided optional index and length.
Buff is a Buffer with the bytes to write.Index is an int with the index to write from.Length is an int with the number of bytes to write.This object.setHost (string Host)
Sets the host with the provided string. Must be called prior to connect.
Host is a string with the host value.This object.setPort (int Port)
Sets the socket port. Must be called prior to connect.
Port is an int with the port number to set.This object.setSoTimeout (int Timeout)
Sets the SO_TIMEOUT value in milliseconds. Must be called prior to connect.
Timeout is an int with the value.This object.setCiphers (list Ciphers)
Sets the list of ciphers.
Ciphers is a list of ciphers to use.This object.setProtocols (list Protocols)
Sets a list of all the enabled protocols.
Protocols is a list of protocols to use.This object.setEnableSessionCreation (bool Val)
Sets the enable session creation flag.
Val is a bool with the flag value.This object.setNeedClientAuth (bool Val)
Sets the needs client auth flag.
Val is a bool with the flag value.This object.setUseClientMode (bool Val)
Sets the use client mode flag.
Val is a bool with the flag value.This object.setWantClientAuth (bool Val)
Sets the want client auth flag.
Val is a bool with the flag value.This object.startHandshake ()
Starts the SSL handshake.
This object.readln ()
Reads a line from the socket and returns it.
A string with the line read.read ()
Reads a character from the socket and returns it.
A string with the read character.readBytes (int Length)
Reads X number of bytes from the stream into a Buffer that is returned.
Length is an int with the number of bytes to read.A Buffer object with the read bytes.readBytesTo (object Buff, int Index = 0, int Length = -1)
Reads X number of bytes from the stream into the provided Buffer at the given index.
Buff is the Buffer object to read into.Index is an int with the start index to read into.Length is an int with the length in bytes to read.This object.getKeepAlive ()
Gets the keep alive flag.
A bool with the keep alive flag.getOOBInline ()
Gets the SO_OOBINLINE (receipt of TCP urgent data) flag.
A bool with the flag value.getReceiveBufferSize ()
Gets the receive buffer size.
An int with the receive buffer size.getReuseAddress ()
Gets the reuse address flag.
A bool with the flag.getSendBufferSize ()
Gets the send buffer size.
An int with the send buffer size.getSoLinger ()
Gets the SO_LINGER value.
An int with the value.getTcpNoDelay ()
Gets the TCP no delay flag value.
A bool with the flag value.getTrafficClass ()
Gets the traffic class for the sslSocket. See the trafficClass enum for available values.
A string with the socket class.getSoTimeout ()
Gets the SO_TIMEOUT value in milliseconds. Must be called prior to connect.
An int with the value.getCiphers ()
Gets the ciphers list.
A list with the ciphers.getProtocols ()
Gets the protocols list.
A list with the protocols.getEnableSessionCreation ()
Gets the enable session creation flag.
A bool with the flag value.getNeedClientAuth ()
Gets the need client auth flag.
A bool with the flag value.getUseClientMode ()
Gets the use client mode flag.
A bool with the flag value.getWantClientAuth ()
Gets the want client auth flag.
A bool with the flag value.