Mercurial > hg > freeDiameter
diff libfdcore/cnxctx.h @ 1186:56c36d1007b4
Further preparation of the DTLS integration. Some cleanups in the GNUTLS handling.
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Fri, 07 Jun 2013 18:48:34 +0800 |
parents | 22de21feec64 |
children | ce2b00dc86c1 |
line wrap: on
line diff
--- a/libfdcore/cnxctx.h Thu Jun 06 19:06:00 2013 +0800 +++ b/libfdcore/cnxctx.h Fri Jun 07 18:48:34 2013 +0800 @@ -74,6 +74,7 @@ uint16_t str_in; /* In streams */ uint16_t pairs; /* max number of pairs ( = min(in, out)) */ uint16_t next; /* # of stream the next message will be sent to */ + int unordered; /* boolean telling if use of streams > 0 is permitted */ } cc_sctp_para; /* If both conditions */ @@ -117,7 +118,7 @@ int fd_sctp_get_local_ep(int sock, struct fd_list * list); int fd_sctp_get_remote_ep(int sock, struct fd_list * list); int fd_sctp_get_str_info( int sock, uint16_t *in, uint16_t *out, sSS *primary ); -int fd_sctp_sendstr(struct cnxctx * conn, uint16_t strid, uint8_t * buf, size_t len); +ssize_t fd_sctp_sendstrv(struct cnxctx * conn, uint16_t strid, const struct iovec *iov, int iovcnt); int fd_sctp_recvmeta(struct cnxctx * conn, uint16_t * strid, uint8_t ** buf, size_t * len, int *event); /* TLS over SCTP (multi-stream) */