P1sec / pysctp

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

Allow to set the default values for streamid, ttl #33

Closed p1-ra closed 4 years ago

p1-ra commented 4 years ago

All is in the title.

Allow to set the default values for ppid, stream, ttl. sctp_send will then use them if they are not specified as parameters.

It is useful for when using SCTP socket as TCP/UDP socket with a library that is not aware if its custom method sctp_send.

By overwriting its send with its sctp_send method, we could now still configure the ppid and so on.

p1-ra commented 4 years ago
p1-bmu commented 4 years ago

Thanks !