public class SqlServerSocketAdapter:
Socket adapter for SQL Server TDS protocol.
Wraps a standard Socket and provides TDS-specific read/write operations.
import klyn.databases.sql.sqlserver
tcp = Socket()
tcp.connect("localhost", 1433)
adapter = SqlServerSocketAdapter(tcp)| Modifier and Type | Member | Description |
|---|---|---|
| public | SqlServerSocketAdapterSqlServerSocketAdapter(socket as Socket): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void: |
Closes the socket. |
| public | flushflush() as Void throws SQLException: |
Flushes the socket output (no-op for SQL Server as sendBytes is synchronous). |
| public | isSecureisSecure() as Boolean: |
Returns true if the socket is using TLS. |
| public | readread(buffer as Byte[], offset as Int, length as Int) as Int throws SQLException: |
Reads bytes from the socket. |
| public | setTimeoutMillissetTimeoutMillis(timeoutMillis as Int) as Void throws SQLException: |
Sets the socket timeout. |
| public | upgradeupgrade(host as String, port as Int, sslContext as SSLContext) as Void throws SQLException: |
Upgrades the socket to TLS/SSL. |
| public | writewrite(buffer as Byte[], offset as Int, length as Int) as Void throws SQLException: |
Writes bytes to the socket. |