public class PostgreSQLPacketStream:
PostgreSQL packet stream for message-based protocol.
PostgreSQL protocol uses messages with format:
| Modifier and Type | Member | Description |
|---|---|---|
| public | PostgreSQLPacketStreamPostgreSQLPacketStream(socket as PostgreSQLSocketAdapter): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void: |
Closes the stream. |
| public | getLastMessageTypegetLastMessageType() as Byte: |
Returns the last message type. |
| public | readMessagereadMessage() as Byte[] throws SQLException: |
Reads a message with type byte. |
| public | readStartupResponsereadStartupResponse() as Byte[] throws SQLException: |
Reads startup message response (no type byte). |
| public | writeMessagewriteMessage(type as Int, payload as Byte[]) as Void throws SQLException: |
Writes a message with type byte. |
| public | writeSslRequestwriteSslRequest() as Void throws SQLException: |
Writes SSL request. |
| public | writeStartupMessagewriteStartupMessage(payload as Byte[]) as Void throws SQLException: |
Writes startup message (no type byte). |