Mercurial > hg > freeDiameter
comparison freeDiameter/cnxctx.h @ 220:5f2ce627db3c
Try to fix the old bug on sctp_getpaddrs
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 19 Feb 2010 18:09:43 +0900 |
parents | b9f48f2f2a22 |
children | 5df55136361b |
comparison
equal
deleted
inserted
replaced
219:e5bcc8c9322e | 220:5f2ce627db3c |
---|---|
43 char cc_id[60]; /* The name of this connection */ | 43 char cc_id[60]; /* The name of this connection */ |
44 char cc_remid[60]; /* Id of remote peer */ | 44 char cc_remid[60]; /* Id of remote peer */ |
45 | 45 |
46 int cc_socket; /* The socket object of the connection -- <=0 if no socket is created */ | 46 int cc_socket; /* The socket object of the connection -- <=0 if no socket is created */ |
47 | 47 |
48 int cc_family; /* AF_INET or AF_INET6 (mixed) */ | |
48 int cc_proto; /* IPPROTO_TCP or IPPROTO_SCTP */ | 49 int cc_proto; /* IPPROTO_TCP or IPPROTO_SCTP */ |
49 uint32_t cc_status; /* True if the object is being destroyed: we don't send events anymore */ | 50 uint32_t cc_status; /* True if the object is being destroyed: we don't send events anymore */ |
50 #define CC_STATUS_CLOSING 1 | 51 #define CC_STATUS_CLOSING 1 |
51 #define CC_STATUS_ERROR 2 | 52 #define CC_STATUS_ERROR 2 |
52 #define CC_STATUS_SIGNALED 4 | 53 #define CC_STATUS_SIGNALED 4 |
99 int fd_tcp_get_local_ep(int sock, sSS * ss, socklen_t *sl); | 100 int fd_tcp_get_local_ep(int sock, sSS * ss, socklen_t *sl); |
100 int fd_tcp_get_remote_ep(int sock, sSS * ss, socklen_t *sl); | 101 int fd_tcp_get_remote_ep(int sock, sSS * ss, socklen_t *sl); |
101 | 102 |
102 #ifndef DISABLE_SCTP | 103 #ifndef DISABLE_SCTP |
103 /* SCTP */ | 104 /* SCTP */ |
104 int fd_sctp_create_bind_server( int * sock, struct fd_list * list, uint16_t port ); | 105 int fd_sctp_create_bind_server( int * sock, int family, struct fd_list * list, uint16_t port ); |
105 int fd_sctp_listen( int sock ); | 106 int fd_sctp_listen( int sock ); |
106 int fd_sctp_client( int *sock, int no_ip6, uint16_t port, struct fd_list * list ); | 107 int fd_sctp_client( int *sock, int no_ip6, uint16_t port, struct fd_list * list ); |
107 int fd_sctp_get_local_ep(int sock, struct fd_list * list); | 108 int fd_sctp_get_local_ep(int sock, struct fd_list * list); |
108 int fd_sctp_get_remote_ep(int sock, struct fd_list * list); | 109 int fd_sctp_get_remote_ep(int sock, struct fd_list * list); |
109 int fd_sctp_get_str_info( int sock, uint16_t *in, uint16_t *out, sSS *primary ); | 110 int fd_sctp_get_str_info( int sock, uint16_t *in, uint16_t *out, sSS *primary ); |
110 int fd_sctp_sendstr(int sock, uint16_t strid, uint8_t * buf, size_t len, int * cc_closing); | 111 int fd_sctp_sendstr(int sock, uint16_t strid, uint8_t * buf, size_t len, int * cc_closing); |
111 int fd_sctp_recvmeta(int sock, uint16_t * strid, uint8_t ** buf, size_t * len, int *event, int * cc_closing); | 112 int fd_sctp_recvmeta(int sock, uint16_t * strid, uint8_t ** buf, size_t * len, int *event, int * cc_closing); |
112 | 113 |