ucspi-ssl
0.99e
TLS encryption for IPv6 communication
ucspi-ssl-0.99e
src
socket_udp.c
Go to the documentation of this file.
1
#include <sys/types.h>
2
#include <sys/param.h>
3
#include <sys/socket.h>
4
#include <netinet/in.h>
5
#include <unistd.h>
6
#include "
ndelay.h
"
7
#include "
socket.h
"
8
9
int
socket_udp
(
void
)
10
{
11
int
s;
12
13
s = socket(AF_INET,SOCK_DGRAM,0);
14
if
(s == -1)
return
-1;
15
if
(
ndelay_on
(s) == -1) { close(s);
return
-1; }
16
return
s;
17
}
ndelay_on
int ndelay_on(int)
Definition:
ndelay_on.c:11
ndelay.h
socket_udp
int socket_udp(void)
Definition:
socket_udp.c:9
socket.h
Generated on Wed Jul 11 2018 22:50:46 for ucspi-ssl by
1.8.13