Module _sctp.sctp_info

Excepted for classes sctp_sendv_spa and sctp_recvv_rn, all objects defined in this module inherit from the Python dict object.

Objects

class _sctp.sctp_info.sctp_sndinfo(*, snd_sid=0, snd_flags=0, snd_ppid=0, snd_context=0, snd_assoc_id=0)
Parameters:
  • snd_siduint16_t

  • snd_flagsuint16_t

  • snd_ppiduint32_t

  • snd_contextuint32_t

  • snd_assoc_idint32_t

Python wrapper for struct sctp_sndinfo defined in RFC 6458 – section-5.3.4.

class _sctp.sctp_info.sctp_prinfo(*, pr_policy=SCTP_PR_SCTP_NONE, pr_value=0)
Parameters:
  • pr_policy – must be SCTP_PR_SCTP_NONE or SCTP_PR_SCTP_TTL

  • pr_valueuint32_t

Python wrapper for struct sctp_prinfo defined in RFC 6458 – section-5.3.7.

Note

Parameter pr_value is ignored when pr_policy is SCTP_PR_SCTP_NONE.

class _sctp.sctp_info.sctp_authinfo(*, auth_keynumber=0)
Parameters:

auth_keynumberuint16_t

Python wrapper for struct sctp_authinfo defined in RFC 6458 – section-5.3.8.

class _sctp.sctp_info.sctp_sendv_spa(infos)
Parameters:

infos – an iterable of sctp_[snd|pr|auth]info objects. Only one type of object is permitted at a time. Therefore, no more than three objects are accepted.

Python wrapper for struct sctp_sendv_spa defined in RFC 6458 – section-9.12.

sctp_sendv_spa object has 3 readable/writable attributes:

Some examples of how these objects can be used
>>> si = sctp_sndinfo(snd_sid=1)
>>> sp = sctp_prinfo()
>>> spa = sctp_sendv_spa((si, sp))
>>> print(spa)
{'sndinfo': {'snd_sid': 1, 'snd_flags': 0, 'snd_ppid': 0, 'snd_context': 0,
 'snd_assoc_id': 0}, 'prinfo': {'pr_policy': 0, 'pr_value': 0}, 'authinfo': None}
>>> spa.sndinfo = None
>>> spa.authinfo = sctp_authinfo(auth_keynumber=1234)
>>> print(spa)
{'sndinfo': None, 'prinfo': {'pr_policy': 0, 'pr_value': 0}, 'authinfo':
 {'auth_keynumber': 1234}}
class _sctp.sctp_info.sctp_rcvinfo(*, rcv_sid=0, rcv_ssn=0, rcv_flags=0, rcv_ppid=0, rcv_tsn=0, rcv_cumtsn=0, rcv_context=0, rcv_assoc_id=0)
Parameters:
  • rcv_siduint16_t

  • rcv_ssnuint16_t

  • rcv_flagsuint16_t

  • rcv_ppiduint32_t

  • rcv_tsnuint32_t

  • rcv_cumtsnuint32_t

  • rcv_contextuint32_t

  • rcv_assoc_idint32_t

Python wrapper for struct sctp_rcvinfo defined in RFC 6458 – section-5.3.5.

class _sctp.sctp_info.sctp_nxtinfo(*, nxt_sid=0, nxt_flags=0, nxt_ppid=0, nxt_length=0, nxt_assoc_id=0)
Parameters:
  • nxt_siduint16_t

  • nxt_flagsuint16_t

  • nxt_ppiduint32_t

  • nxt_lengthuint32_t

  • nxt_assoc_idint32_t

Python wrapper for struct sctp_nxtinfo defined in RFC 6458 – section-5.3.6.

class _sctp.sctp_info.sctp_recvv_rn(infos)
Parameters:

infos – an iterable of sctp_[rcv|nxt]info objects. Only one type of object is permitted at a time. Therefore, no more than two objects are accepted.

Python wrapper for struct sctp_recvv_rn defined in RFC 6458 – section-9.13.

sctp_recvv_rn object has 2 readable/writable attributes:

Constants

This module export the following constants:

_sctp.sctp_info.SCTP_UNORDERED
_sctp.sctp_info.SCTP_ADDR_OVER
_sctp.sctp_info.SCTP_ABORT
_sctp.sctp_info.SCTP_EOF
_sctp.sctp_info.SCTP_SENDALL
_sctp.sctp_info.SCTP_SEND_SNDINFO_VALID
_sctp.sctp_info.SCTP_SEND_PRINFO_VALID
_sctp.sctp_info.SCTP_SEND_AUTHINFO_VALID
_sctp.sctp_info.SCTP_PR_SCTP_NONE
_sctp.sctp_info.SCTP_PR_SCTP_TTL
_sctp.sctp_info.SCTP_NOTIFICATION