ASTM protocol states set.
Common ASTM protocol routines.
ASTM header record class.
alias of GenericRecord
ASTM terminator record class.
alias of GenericRecord
Flag about chunked transfer.
Calls when timeout event occurs. Used to limit time for waiting response data.
Sets handler state to INIT (0).
In ASTM specification this state also called as neutral which means that handler is ready to establish data transfer.
Sets handler state to OPENED (1).
Intermediate state that only means for client implementation. On this state client had already sent <ENQ> and awaits for <ACK> or <NAK> response. On <ACK> it switched his state to transfer.
Sets handler state to TRANSFER (2).
In this state handler is able to send or receive ASTM messages depending on his role (client or server). At the end of data transfer client should send <EOT> and switch state to init.
ASTM handler state value:
Operation timeout value.
Dispatcher of received ASTM records by RequestHandler.
Encoding of received messages.
ASTM protocol request handler.
Parameters: |
|
---|
Asyncore driven ASTM server.
Parameters: |
|
---|
alias of BaseRecordsDispatcher
alias of RequestHandler
Common ASTM client implementation.
Parameters: |
|
---|---|
Type : | callable |
Pushes data on to the channel’s fifo to ensure its transmission with optional timer. Timer is used to control receiving response for sent data within specified time frame. If it’s doesn’t on_timeout() method will be called and data may be sent once again.
Parameters: |
---|
Sends single ASTM record and autoincrement frame sequence number.
Parameters: | record (list or Record) – ASTM record object. |
---|
Records should be sent in specific order or AssertionError will be raised:
Legend:
Previous record type | Current record type |
---|---|
None, this is first record | H |
H | P, L |
P | P, O, C, L |
O | O, R, C, L |
R | R, C, L |
L | H |