use tcp
This commit is contained in:
parent
0f207a1411
commit
591a42941b
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netinet/sctp.h>
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <sodium.h>
|
#include <sodium.h>
|
||||||
|
@ -95,7 +95,7 @@ floof_conn_t * floof_socket(floof_node_t * node, int domain) {
|
||||||
|
|
||||||
ret->node = node;
|
ret->node = node;
|
||||||
|
|
||||||
if(-1 == (ret->sock = socket(domain, SOCK_SEQPACKET, IPPROTO_SCTP))) {
|
if(-1 == (ret->sock = socket(domain, SOCK_SEQPACKET, IPPROTO_TCP))) {
|
||||||
free(ret);
|
free(ret);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue