c-libp2p/net/sctp.c

16 lines
256 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 "p2pnet.h"
/* 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;
}