pub enum ConnectHeader {
Attach(AttachHeader),
List,
SessionMessage(SessionMessageRequest),
Detach(DetachRequest),
Kill(KillRequest),
SetLogLevel(SetLogLevelRequest),
}
Expand description
The blob of metadata that a client transmits when it first connects.
It uses an enum to allow different connection types to be initiated on the same socket. The ConnectHeader is always prefixed with a 4 byte little endian unsigned word to indicate length.
Variants§
Attach(AttachHeader)
Attach to the named session indicated by the given header.
Responds with an AttachReplyHeader.
List
List all of the currently active sessions.
SessionMessage(SessionMessageRequest)
A message for a named, running sessions. This provides a mechanism for RPC-like calls to be made to running sessions. Messages are only delivered if there is currently a client attached to the session because we need a servicing thread with access to the SessionInner to respond to requests (we could implement a mailbox system or something for detached threads, but so far we have not needed to).
Detach(DetachRequest)
A message to request that a list of running sessions get detached from.
Kill(KillRequest)
A message to request that a list of running sessions get killed.