Part of vmc.contrib.epsilon.juice View In Hierarchy
Known subclasses: vmc.contrib.axiom.batch.JuiceChild
JUICE (JUice Is Concurrent Events) is a simple connection-oriented request/response protocol. Packets, or "boxes", are collections of RFC2822-inspired headers, plus a body. Note that this is NOT a literal interpretation of any existing RFC, 822, 2822 or otherwise, but a simpler version that does not do line continuations, does not specify any particular format for header values, dispatches semantic meanings of most headers on the -Command header rather than giving them global meaning, and allows multiple sets of headers (messages, or JuiceBoxes) on a connection.
All headers whose names begin with a dash ('-') are reserved for use by the protocol. All others are for application use - their meaning depends on the value of the "-Command" header.Method | __init__ | |
Method | __repr__ | Undocumented |
Method | juiceBoxReceived | Undocumented |
Method | sendPacket | Send a juice.Box to my peer. |
Method | sendCommand | Undocumented |
Method | makeConnection | Undocumented |
Method | prepareTLS | Undocumented |
Method | startTLS | Undocumented |
Method | dataReceived | Undocumented |
Method | connectionLost | Undocumented |
Method | lineReceived | Undocumented |
Method | rawDataReceived | Undocumented |
Method | renegotiateVersion | Undocumented |
Method | command_NEGOTIATE | Undocumented |
Inherited from LineReceiver:
Method | setLineMode | Undocumented |
Method | isDisconnecting | Undocumented |
Method | setRawMode | Undocumented |
Inherited from JuiceParserBase:
Method | _puke | Undocumented |
Method | _nextTag | Undocumented |
Method | failAllOutgoing | Undocumented |
Method | sendBoxCommand | Send a command across the wire with the given
juice.Box .
|
Inherited from DispatchMixin (via JuiceParserBase):
Method | _auto | Undocumented |
Method | _wrap | Undocumented |
Method | normalizeCommand | Return the canonical form of a command. |
Method | lookupFunction | Return a callable to invoke when executing the named command. |
Method | dispatchCommand | Undocumented |
Parameters | issueGreeting | whether to issue a greeting when connected. This should be set on server-side Juice protocols. |
Send a juice.Box to my peer.
Note: transport.write is never called outside of this method.