obspy.clients.seedlink.client.slstate.SLState
- class SLState[source]
Bases:
object
Class to manage SeedLinkConnection state.
- Variables:
SL_DOWN – Connection state down.
SL_UP – Connection state up.
SL_DATA – Connection state data.
state – Connection state.
NO_QUERY – INFO query state NO_QUERY.
INFO_QUERY – INFO query state INFO_QUERY.
KEEP_ALIVE_QUERY – INFO query state KEEP_ALIVE_QUERY.
query_mode – INFO query state.
BUFSIZE – Size of receiving buffer (default is 8192).
databuf – Data buffer for received packets.
recptr – Receive pointer for databuf.
sendptr – Send pointer for databuf.
expect_info – Flag to indicate if an INFO response is expected.
netto_trig – Network timeout trigger.netto_trig
netdly_trig – Network re-connect delay trigger.
keepalive_trig – Send keepalive trigger.
previous_time – Time stamp of last state update.
netto_time – Network timeout time stamp.
netdly_time – Network re-connect delay time stamp.
keepalive_time – Keepalive time stamp.
Attributes
Public Methods
Appends bytes to the receive buffer after the last received data. |
|
Return number of bytes remaining in receiving buffer. |
|
Returns last received packet. |
|
Increments the send pointer by size of one packet. |
|
Check for SeedLink END packet. |
|
Check for SeedLink ERROR packet. |
|
Packs the buffer by removing all sent packets and shifting remaining bytes to beginning of buffer. |
|
Check for full packet available to send. |
|
Check for SeedLink INFO packet. |
Special Methods
- SLState.__delattr__(name, /)
Implement delattr(self, name).
- SLState.__dir__()
Default dir() implementation.
- SLState.__eq__(value, /)
Return self==value.
- SLState.__format__(format_spec, /)
Default object formatter.
- SLState.__ge__(value, /)
Return self>=value.
- SLState.__getattribute__(name, /)
Return getattr(self, name).
- SLState.__gt__(value, /)
Return self>value.
- SLState.__hash__()
Return hash(self).
- SLState.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- SLState.__le__(value, /)
Return self<=value.
- SLState.__lt__(value, /)
Return self<value.
- SLState.__ne__(value, /)
Return self!=value.
- SLState.__new__(**kwargs)
- SLState.__reduce__()
Helper for pickle.
- SLState.__reduce_ex__(protocol, /)
Helper for pickle.
- SLState.__repr__()
Return repr(self).
- SLState.__setattr__(name, value, /)
Implement setattr(self, name, value).
- SLState.__sizeof__()
Size of object in memory, in bytes.
- SLState.__str__()
Return str(self).
- SLState.__subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).