Mercurial > hg > freeDiameter
diff freeDiameter/sctp.c @ 22:0b3b46da2c12
Progress on server code
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 19 Oct 2009 18:43:09 +0900 |
parents | 277ec00d793e |
children | db6c40b8b307 |
line wrap: on
line diff
--- a/freeDiameter/sctp.c Thu Oct 08 20:05:16 2009 +0900 +++ b/freeDiameter/sctp.c Mon Oct 19 18:43:09 2009 +0900 @@ -35,16 +35,27 @@ #include "fD.h" -int fd_sctp_create_bind_server( int * socket, uint16_t port ) +/* Create a socket server and bind it according to daemon s configuration */ +int fd_sctp_create_bind_server( int * sock, struct fd_list * list, uint16_t port ) { TODO("Create sctp server, using fd_g_config: cnf_endpoints, no_ip4, no_ip6, cnf_sctp_str"); return ENOTSUP; } +/* Allow clients connections on server sockets */ +int fd_sctp_listen( int sock ) +{ + TRACE_ENTRY("%d", sock); + CHECK_SYS( listen(sock, 5) ); + return 0; +} + +/* Retrieve streams information from a connected association */ int fd_sctp_get_str_info( int socket, int *in, int *out ) { TODO("Retrieve streams info from the socket"); return ENOTSUP; } +