c-libp2p/net/sctp.c

16 lines
267 B
C
Raw Normal View History

2016-11-10 22:40:27 +00:00
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include "libp2p/net/p2pnet.h"
2016-11-10 22:40:27 +00:00
/* Create a SCTP socket.
*/
int socket_stream_sctp4(void)
{
int s;
s = socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP);
if (s == -1) return -1;
return s;
}