ConnContext — a structure describing a connection connection context
ConnContext next # The next context in the list String username # The user this context is for String accountname # The local account String protocol # The IM protocol String fragment # The part of the fragmented message # we've seen so far int fragment_len # The length of fragment int fragment_n # The total number of fragments in # this message int fragment_k # The highest fragment number we've seen # so far for this message OtrlMessageState msgstate # The state of message disposition # with this user Fingerprint fingerprint_root # The root of a linked list of # Fingerprints entries Fingerprint active_fingerprint # Which fingerprint is in use now? # A pointer into the above list int their_keyid # current keyid used by other side; # this is set to 0 if we get a # OTRL_TLV_DISCONNECTED message from # them. int our_keyid # current keyid used by us String sessionid # The raw sessionid OtrlSessionIdHalf sessionid_half# marker for which half of sessionid # should be bold int protocol_version # The version of OTR in use String preshared_secret # A secret you share with this # user, in order to do # authentication. int preshared_secret_len # The length of the above secret. int generation # incremented every time we go private int lastsent # The last time[1] a Data Message was sent String lastmessage # The plaintext of the last Data Message sent int may_retransmit # Is the last message eligible for # retransmission? enum { OFFER_NOT, OFFER_SENT, OFFER_REJECTED, OFFER_ACCEPTED } otr_offer # Has this correspondent repsponded to our # OTR offers? object app_data # application data associated to this # context via add_appdata callbacks OtrlSMState smstate # The state of the current socialist # millionaires exchange
[1] ...in seconds since epoch, can be converted using:
>>> import datetime
>>> datetime.datetime.fromtimestamp(lastsent
)