obspy.seedlink.slpacket.SLPacket¶
- class SLPacket(bytes=None, offset=None)[source]¶
Bases: future.types.newobject.newobject
Class to hold and decode a SeedLink packet.
Variables: - TYPE_SLINFT Packet type is terminated info packet.
- TYPE_SLINF Packet type is non-terminated info packet.
- SLTERMINATE Terminate flag - connection was closed by the server or the termination sequence completed.
- SLNOPACKET No packet flag - indicates no data available.
- SLERROR Error flag - indicates server reported an error.
- SLHEADSIZE SeedLink packet header size.
- SLRECSIZE Mini-SEED record size.
- SIGNATURE SeedLink header signature.
- INFOSIGNATURE SeedLink INFO packet signature.
- ERRORSIGNATURE SeedLink ERROR signature.
- ENDSIGNATURE SeedLink END signature.
- slhead The SeedLink header.
- msrecord The MiniSEED record.
Attributes
ENDSIGNATURE str(object=’‘) -> string ERRORSIGNATURE str(object=’‘) -> string INFOSIGNATURE str(object=’‘) -> string SIGNATURE str(object=’‘) -> string SLERROR str(object=’‘) -> string SLHEADSIZE int(x=0) -> int or long SLNOPACKET str(object=’‘) -> string SLRECSIZE int(x=0) -> int or long SLTERMINATE str(object=’‘) -> string TYPE_SLINF int(x=0) -> int or long TYPE_SLINFT int(x=0) -> int or long __dict__ __doc__ unicode(object=’‘) -> unicode object __module__ str(object=’‘) -> string __weakref__ list of weak references to the object (if defined) Public Methods
getMSRecord getSequenceNumber getStringPayload Get the MiniSEED payload, parsed as string. getTrace getType next Special Methods
__init__ __long__ __native__ Hook for the future.utils.native() function __nonzero__ __unicode__