Commit Graph

6 Commits

Author SHA1 Message Date
Sean DuBois
ec5c743b55 Implement CookieEcho, respond with CookieAck
Peer now starts sending heartbeats, association is good!
2018-07-21 12:27:38 -07:00
John R. Bradley
a1874f912d Pad out each chunk 2018-07-21 12:27:38 -07:00
Sean DuBois
2d57c5856c Implement Abort + ErrorCause handling
Add all the boilerplate for handling this implement
InvalidMandatoryParameter and UnrecognizedChunkType
2018-07-21 12:27:38 -07:00
John R. Bradley
0e43088e58 Add init ack sending, added cookie state 2018-07-21 12:27:38 -07:00
Sean DuBois
5849e549a7 Implement Marshal for multiple structs, with some tests
* Add test for Packet marshal
* Implement Packet, ChunkHeader, ChunkInitAck
* Improve error messages, and de-dupe some comments
2018-07-21 12:27:38 -07:00
Sean DuBois
51e669e1d8 Improve error handling and enums in SCTP
* Make sure errors in SCTP make it all the way back
* Move structs into files with proper names in SCTP
* Add String() for AssociationState enum
* Add callbacks to Association to that we can handle
  DATA in the DataChannel package and send outbound SCTP
2018-07-21 12:27:38 -07:00