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_sid –
uint16_tsnd_flags –
uint16_tsnd_ppid –
uint32_tsnd_context –
uint32_tsnd_assoc_id –
int32_t
Python wrapper for
struct sctp_sndinfodefined 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_NONEorSCTP_PR_SCTP_TTLpr_value –
uint32_t
Python wrapper for
struct sctp_prinfodefined in RFC 6458 – section-5.3.7.Note
Parameter
pr_valueis ignored whenpr_policyisSCTP_PR_SCTP_NONE.
- class _sctp.sctp_info.sctp_authinfo(*, auth_keynumber=0)¶
- Parameters:
auth_keynumber –
uint16_t
Python wrapper for
struct sctp_authinfodefined in RFC 6458 – section-5.3.8.
- class _sctp.sctp_info.sctp_sendv_spa(infos)¶
- Parameters:
infos – an iterable of
sctp_[snd|pr|auth]infoobjects. Only one type of object is permitted at a time. Therefore, no more than three objects are accepted.
Python wrapper for
struct sctp_sendv_spadefined in RFC 6458 – section-9.12.sctp_sendv_spaobject has 3 readable/writable attributes:- sndinfo¶
a
sctp_sndinfoobject orNone
- prinfo¶
a
sctp_prinfoobject orNone
- authinfo¶
a
sctp_authinfoobject orNone
>>> 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_sid –
uint16_trcv_ssn –
uint16_trcv_flags –
uint16_trcv_ppid –
uint32_trcv_tsn –
uint32_trcv_cumtsn –
uint32_trcv_context –
uint32_trcv_assoc_id –
int32_t
Python wrapper for
struct sctp_rcvinfodefined 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_sid –
uint16_tnxt_flags –
uint16_tnxt_ppid –
uint32_tnxt_length –
uint32_tnxt_assoc_id –
int32_t
Python wrapper for
struct sctp_nxtinfodefined in RFC 6458 – section-5.3.6.
- class _sctp.sctp_info.sctp_recvv_rn(infos)¶
- Parameters:
infos – an iterable of
sctp_[rcv|nxt]infoobjects. Only one type of object is permitted at a time. Therefore, no more than two objects are accepted.
Python wrapper for
struct sctp_recvv_rndefined in RFC 6458 – section-9.13.sctp_recvv_rnobject has 2 readable/writable attributes:- rcvinfo¶
a
sctp_rcvinfoobject orNone
- nxtinfo¶
a
sctp_nxtinfoobject orNone
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¶