P1sec / pysctp

SCTP stack for Python
http://www.p1sec.com
161 stars 67 forks source link

Method for specifying the Payload Protocol Identifier for Data Chunk? #45

Closed btsimon97 closed 1 year ago

btsimon97 commented 1 year ago

SCTP provides a payload protocol identifier field for the data chunk which marks the application layer protocol being transmitted over SCTP. When using pySCTP to provide an SCTP server it currently defaults to 0, meaning unspecified. Is there a way to set this value so that messages sent as part of a given communication will be tagged with the correct payload protocol identifier?

btsimon97 commented 1 year ago

Needed to use sctp_send instead of send, as sctp_send has ppid parameter to set.