Skip to content

Commit

Permalink
programs/st_client.c: add usrsctp_setsockopt(s, IPPROTO_SCTP, SCTP_RE…
Browse files Browse the repository at this point in the history
…CVRCVINFO, &on, sizeof(int))
  • Loading branch information
ibc committed Aug 12, 2019
1 parent b936692 commit a2f1f5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions programs/st_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ main(int argc, char *argv[])
return (-1);
}

const int on = 1;

usrsctp_setsockopt(s, IPPROTO_SCTP, SCTP_RECVRCVINFO, &on, sizeof(int));

usrsctp_set_non_blocking(s, 1);
usrsctp_set_upcall(s, handle_upcall, NULL);

Expand Down

0 comments on commit a2f1f5e

Please sign in to comment.