Mercurial > hg > freeDiameter-dtls
comparison libfdcore/cnxctx.h @ 1186:56c36d1007b4 dtls_dev
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 | e1ced4db7f67 ce2b00dc86c1 |
comparison
equal
deleted
inserted
replaced
1185:23695957bfc0 | 1186:56c36d1007b4 |
---|---|
72 struct { | 72 struct { |
73 uint16_t str_out; /* Out streams */ | 73 uint16_t str_out; /* Out streams */ |
74 uint16_t str_in; /* In streams */ | 74 uint16_t str_in; /* In streams */ |
75 uint16_t pairs; /* max number of pairs ( = min(in, out)) */ | 75 uint16_t pairs; /* max number of pairs ( = min(in, out)) */ |
76 uint16_t next; /* # of stream the next message will be sent to */ | 76 uint16_t next; /* # of stream the next message will be sent to */ |
77 int unordered; /* boolean telling if use of streams > 0 is permitted */ | |
77 } cc_sctp_para; | 78 } cc_sctp_para; |
78 | 79 |
79 /* If both conditions */ | 80 /* If both conditions */ |
80 struct { | 81 struct { |
81 struct sctp3436_ctx *array; /* an array of cc_sctp_para.pairs elements -- the #0 is special (session is outside)*/ | 82 struct sctp3436_ctx *array; /* an array of cc_sctp_para.pairs elements -- the #0 is special (session is outside)*/ |
115 int fd_sctp_listen( int sock ); | 116 int fd_sctp_listen( int sock ); |
116 int fd_sctp_client( int *sock, int no_ip6, uint16_t port, struct fd_list * list ); | 117 int fd_sctp_client( int *sock, int no_ip6, uint16_t port, struct fd_list * list ); |
117 int fd_sctp_get_local_ep(int sock, struct fd_list * list); | 118 int fd_sctp_get_local_ep(int sock, struct fd_list * list); |
118 int fd_sctp_get_remote_ep(int sock, struct fd_list * list); | 119 int fd_sctp_get_remote_ep(int sock, struct fd_list * list); |
119 int fd_sctp_get_str_info( int sock, uint16_t *in, uint16_t *out, sSS *primary ); | 120 int fd_sctp_get_str_info( int sock, uint16_t *in, uint16_t *out, sSS *primary ); |
120 int fd_sctp_sendstr(struct cnxctx * conn, uint16_t strid, uint8_t * buf, size_t len); | 121 ssize_t fd_sctp_sendstrv(struct cnxctx * conn, uint16_t strid, const struct iovec *iov, int iovcnt); |
121 int fd_sctp_recvmeta(struct cnxctx * conn, uint16_t * strid, uint8_t ** buf, size_t * len, int *event); | 122 int fd_sctp_recvmeta(struct cnxctx * conn, uint16_t * strid, uint8_t ** buf, size_t * len, int *event); |
122 | 123 |
123 /* TLS over SCTP (multi-stream) */ | 124 /* TLS over SCTP (multi-stream) */ |
124 struct sctp3436_ctx { | 125 struct sctp3436_ctx { |
125 struct cnxctx *parent; /* for info such as socket, conn name, event list */ | 126 struct cnxctx *parent; /* for info such as socket, conn name, event list */ |