Navigation


Changeset 1186:56c36d1007b4 in freeDiameter for tests/testsctp.c


Ignore:
Timestamp:
Jun 7, 2013, 7:48:34 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Further preparation of the DTLS integration. Some cleanups in the GNUTLS handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/testsctp.c

    r740 r1186  
    6161        char *buf2;
    6262        size_t sz;
     63        struct iovec iov;
    6364        struct fd_list eps = FD_LIST_INITIALIZER(eps);
    6465        uint16_t str;
     
    104105       
    105106        /* 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 ) );
    107110        CHECK( 0, srv.cc_state);
    108111       
     
    120123       
    121124        /* 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) );
    123126        CHECK( 0, cli.cc_state);
    124127       
Note: See TracChangeset for help on using the changeset viewer.