Inrease the message size for testing again.
#include <usrsctp.h>
#define MAX_PACKET_SIZE (1<<16)
-#define LINE_LENGTH (1<<10)
+#define LINE_LENGTH (1<<20)
#define DISCARD_PPID 39
#ifdef _WIN32
@@ -383,7 +383,7 @@ main(void)
};
#endif
#ifdef SCTP_DEBUG
- usrsctp_sysctl_set_sctp_debug_on(SCTP_DEBUG_ALL);
+ usrsctp_sysctl_set_sctp_debug_on(SCTP_DEBUG_NONE);
#endif
usrsctp_sysctl_set_sctp_ecn_enable(0);
usrsctp_register_address((void *)&fd_c);
@@ -489,7 +489,7 @@ main(void)
sndinfo.snd_ppid = htonl(DISCARD_PPID);
sndinfo.snd_context = 0;
sndinfo.snd_assoc_id = 0;
- /* Send a 1 MB message */
+ /* Send a 1 MB ordered message */
if (usrsctp_sendv(s_c, line, LINE_LENGTH, NULL, 0, (void *)&sndinfo,
(socklen_t)sizeof(struct sctp_sndinfo), SCTP_SENDV_SNDINFO, 0) < 0) {
perror("usrsctp_sendv");
