Next: , Previous: , Up: Top   [Contents][Index]


3 Implementation

The implementation is line based with a maximum line size of 1000 octets. The default IPC mechanism is Unix Domain Sockets.

On connect, the server responds either with okay or an error status. To perform an authentication check, the server may send an Inquiry response prior to the first Okay. It may also issue Status messages. The server must check that the client is allowed to connect. This is done by requesting the credentials for the peer and comparing them with the server’s credentials. This avoids attacks based on wrong socket permissions.

The server may choose to delay the first response in case of an error. The server, however, never closes the connection, however, the lower protocol may do so after some time of inactivity or when the connection enters an error state.

All textual messages are assumed to be in UTF-8 unless otherwise noted.