Class v.c.e.j.Juice(LineReceiver, JuiceParserBase):

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
def __init__(self, issueGreeting):
ParametersissueGreetingwhether to issue a greeting when connected. This should be set on server-side Juice protocols.
def __repr__(self):
Undocumented
def _lock(self):
Lock this Juice instance so that no further Juice traffic may be sent. This is used when sending a request to switch underlying protocols. You probably want to subclass ProtocolSwitchCommand rather than calling this directly.
def _switchTo(self, newProto, clientFactory=None):
Switch this Juice instance to a new protocol. You need to do this 'simultaneously' on both ends of a connection; the easiest way to do this is to use a subclass of ProtocolSwitchCommand.
def juiceBoxReceived(self, box):
Undocumented
def sendPacket(self, completeBox):

Send a juice.Box to my peer.

Note: transport.write is never called outside of this method.
def sendCommand(self, command, __content='', __answer=True, **kw):
Undocumented
def makeConnection(self, transport):
Undocumented
def prepareTLS(self):
Undocumented
def startTLS(self, certificate, *verifyAuthorities):
Undocumented
def dataReceived(self, data):
Undocumented
def connectionLost(self, reason):
Undocumented
def lineReceived(self, line):
Undocumented
def rawDataReceived(self, data):
Undocumented
def _setProtocolVersion(self, version):
Undocumented
def renegotiateVersion(self, newVersion):
Undocumented
def command_NEGOTIATE(self, versions):
Undocumented
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.