Changeset 1186:56c36d1007b4 in freeDiameter for tests/testsctp.c
- Timestamp:
- Jun 7, 2013, 7:48:34 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/testsctp.c
r740 r1186 61 61 char *buf2; 62 62 size_t sz; 63 struct iovec iov; 63 64 struct fd_list eps = FD_LIST_INITIALIZER(eps); 64 65 uint16_t str; … … 104 105 105 106 /* Send a first message */ 106 CHECK( 0, fd_sctp_sendstr(&srv, 1, (uint8_t *)buf1, sizeof(buf1) ) ); 107 iov.iov_base = buf1; 108 iov.iov_len = sizeof(buf1); 109 CHECK( sizeof(buf1), fd_sctp_sendstrv(&srv, 1, &iov, 1 ) ); 107 110 CHECK( 0, srv.cc_state); 108 111 … … 120 123 121 124 /* Send in the other direction */ 122 CHECK( 0, fd_sctp_sendstr(&cli, 2, (uint8_t *)buf1, sizeof(buf1)) );125 CHECK( sizeof(buf1), fd_sctp_sendstrv(&cli, 2, &iov, 1) ); 123 126 CHECK( 0, cli.cc_state); 124 127
Note: See TracChangeset
for help on using the changeset viewer.