/freebsd-13-stable/sys/netinet/ |
H A D | sctp_peeloff.h | 41 int sctp_can_peel_off(struct socket *, sctp_assoc_t); 42 int sctp_do_peeloff(struct socket *, struct socket *, sctp_assoc_t);
|
/freebsd-13-stable/contrib/ofed/libibumad/ |
H A D | config.h | 1 #include <sys/socket.h>
|
/freebsd-13-stable/share/doc/psd/20.ipctut/ |
H A D | udgramread.c | 31 #include <sys/socket.h> 44 #define NAME "socket" 47 * This program creates a UNIX domain datagram socket, binds a name to it, 48 * then reads from the socket. 56 /* Create socket from which to read. */ 57 sock = socket(AF_UNIX, SOCK_DGRAM, 0); 59 perror("opening datagram socket"); 66 perror("binding name to datagram socket"); 69 printf("socket -->%s\en", NAME); 70 /* Read from the socket */ [all...] |
H A D | ustreamwrite.c | 31 #include <sys/socket.h> 38 * This program connects to the socket named in the command line and sends a 39 * one line message to that socket. The form of the command line is 50 /* Create socket */ 51 sock = socket(AF_UNIX, SOCK_STREAM, 0); 53 perror("opening stream socket"); 56 /* Connect socket using name specified by command line. */ 62 perror("connecting stream socket"); 66 perror("writing on stream socket");
|
H A D | dgramread.c | 31 #include <sys/socket.h> 44 * This program creates a datagram socket, binds a name to it, then reads 45 * from the socket. 53 /* Create socket from which to read. */ 54 sock = socket(AF_INET, SOCK_DGRAM, 0); 56 perror("opening datagram socket"); 64 perror("binding datagram socket"); 70 perror("getting socket name"); 74 /* Read from the socket */
|
H A D | streamwrite.c | 31 #include <sys/socket.h> 39 * This program creates a socket and initiates a connection with the socket 41 * then the socket is closed, ending the connection. The form of the command 54 /* Create socket */ 55 sock = socket(AF_INET, SOCK_STREAM, 0); 57 perror("opening stream socket"); 60 /* Connect socket using name specified by command line. */ 71 perror("connecting stream socket"); 75 perror("writing on stream socket"); [all...] |
H A D | strchkread.c | 31 #include <sys/socket.h> 53 /* Create socket */ 54 sock = socket(AF_INET, SOCK_STREAM, 0); 56 perror("opening stream socket"); 59 /* Name socket using wildcards */ 64 perror("binding stream socket"); 70 perror("getting socket name");
|
H A D | streamread.c | 31 #include <sys/socket.h> 38 * This program creates a socket and then begins an infinite loop. Each time 53 /* Create socket */ 54 sock = socket(AF_INET, SOCK_STREAM, 0); 56 perror("opening stream socket"); 59 /* Name socket using wildcards */ 64 perror("binding stream socket"); 70 perror("getting socket name"); 94 * Since this program has an infinite loop, the socket "sock" is
|
H A D | ustreamread.c | 31 #include <sys/socket.h> 35 #define NAME "socket" 38 * This program creates a socket in the UNIX domain and binds a name to it. 39 * After printing the socket's name it begins a loop. Each time through the 50 /* Create socket */ 51 sock = socket(AF_UNIX, SOCK_STREAM, 0); 53 perror("opening stream socket"); 56 /* Name socket using file system name */ 60 perror("binding stream socket");
|
/freebsd-13-stable/sys/netgraph/bluetooth/include/ |
H A D | ng_btsocket_hci_raw.h | 43 * Bluetooth raw HCI socket PCB 47 struct socket *so; /* socket */ 65 * Bluetooth raw HCI socket methods 71 void ng_btsocket_hci_raw_abort (struct socket *); 72 void ng_btsocket_hci_raw_close (struct socket *); 73 int ng_btsocket_hci_raw_attach (struct socket *, int, struct thread *); 74 int ng_btsocket_hci_raw_bind (struct socket *, struct sockaddr *, 76 int ng_btsocket_hci_raw_connect (struct socket *, struct sockaddr *, 78 int ng_btsocket_hci_raw_control (struct socket *, u_lon [all...] |
H A D | ng_btsocket_l2cap.h | 64 * Bluetooth raw L2CAP socket PCB 68 struct socket *so; /* socket */ 93 * Bluetooth raw L2CAP socket methods 99 void ng_btsocket_l2cap_raw_abort (struct socket *); 100 void ng_btsocket_l2cap_raw_close (struct socket *); 101 int ng_btsocket_l2cap_raw_attach (struct socket *, int, struct thread *); 102 int ng_btsocket_l2cap_raw_bind (struct socket *, struct sockaddr *, 104 int ng_btsocket_l2cap_raw_connect (struct socket *, struct sockaddr *, 106 int ng_btsocket_l2cap_raw_control (struct socket *, u_lon [all...] |
H A D | ng_btsocket_sco.h | 67 * Bluetooth SCO socket PCB 71 struct socket *so; /* Pointer to socket */ 78 u_int16_t flags; /* socket flags */ 79 #define NG_BTSOCKET_SCO_CLIENT (1 << 0) /* socket is client */ 82 u_int8_t state; /* socket state */ 83 #define NG_BTSOCKET_SCO_CLOSED 0 /* socket closed */ 85 #define NG_BTSOCKET_SCO_OPEN 2 /* socket open */ 103 * Bluetooth SCO socket methods 109 void ng_btsocket_sco_abort (struct socket *); [all...] |
/freebsd-13-stable/contrib/mandoc/ |
H A D | test-recvmsg.c | 1 #include <sys/socket.h>
|
/freebsd-13-stable/contrib/ofed/librdmacm/ |
H A D | rsocket.h | 38 #include <sys/socket.h> 49 int rbind(int socket, const struct sockaddr *addr, socklen_t addrlen); 50 int rlisten(int socket, int backlog); 51 int raccept(int socket, struct sockaddr *addr, socklen_t *addrlen); 52 int rconnect(int socket, const struct sockaddr *addr, socklen_t addrlen); 53 int rshutdown(int socket, int how); 54 int rclose(int socket); 56 ssize_t rrecv(int socket, void *buf, size_t len, int flags); 57 ssize_t rrecvfrom(int socket, void *buf, size_t len, int flags, 59 ssize_t rrecvmsg(int socket, struc [all...] |
/freebsd-13-stable/sys/dev/hyperv/hvsock/ |
H A D | hv_sock.h | 33 #include <sys/socket.h> 73 struct socket *so; /* Pointer to socket */ 96 ((struct socket *)((hvspcb)->so)) 100 void hvs_trans_close(struct socket *); 101 void hvs_trans_detach(struct socket *); 102 void hvs_trans_abort(struct socket *); 103 int hvs_trans_attach(struct socket *, int, struct thread *); 104 int hvs_trans_bind(struct socket *, struct sockaddr *, struct thread *); 105 int hvs_trans_listen(struct socket *, in [all...] |
/freebsd-13-stable/sys/sys/ |
H A D | protosw.h | 43 struct socket; 71 typedef int pr_output_t (struct mbuf *, struct socket *, ...); 73 typedef int pr_ctloutput_t (struct socket *, struct sockopt *); 80 short pr_type; /* socket type used for */ 134 #define PRU_BIND 2 /* bind socket to address */ 147 #define PRU_SOCKADDR 15 /* fetch socket's address */ 158 #define PRU_CLOSE 24 /* socket close */ 159 #define PRU_FLUSH 25 /* flush the socket */ 189 void (*pru_abort)(struct socket *so); 190 int (*pru_accept)(struct socket *s [all...] |
H A D | sockopt.h | 43 struct socket; 60 int sosetopt(struct socket *so, struct sockopt *sopt); 61 int sogetopt(struct socket *so, struct sockopt *sopt); 67 int accept_filt_getopt(struct socket *, struct sockopt *); 68 int accept_filt_setopt(struct socket *, struct sockopt *); 69 int so_setsockopt(struct socket *so, int level, int optname,
|
H A D | socketvar.h | 60 * Kernel structure per socket. 65 typedef int so_upcall_t(struct socket *, void *, int); 66 typedef void so_dtor_t(struct socket *); 68 struct socket; 77 * Locking key to struct socket: 82 * (e) locked by SOLISTEN_LOCK() of corresponding listening socket. 88 TAILQ_HEAD(accept_queue, socket); 89 struct socket { struct 94 short so_type; /* (a) generic type, see socket.h */ 95 int so_options; /* (b) from socket cal [all...] |
/freebsd-13-stable/tests/sys/common/ |
H A D | divert.py | 32 import socket namespace 43 parser = argparse.ArgumentParser(description='divert socket tester') 54 with socket.socket(socket.AF_INET, socket.SOCK_RAW, IPPROTO_DIVERT) as s: 61 with socket.socket(socket.AF_INET, socket [all...] |
H A D | net_receiver.py | 33 import socket namespace 40 parser = argparse.ArgumentParser(description='divert socket tester') 54 fam = socket.AF_INET6 56 fam = socket.AF_INET 60 s = socket.socket(fam, socket.SOCK_STREAM) 61 s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 84 fam = socket [all...] |
/freebsd-13-stable/lib/libc/net/ |
H A D | sockatmark.c | 31 #include <sys/socket.h>
|
/freebsd-13-stable/contrib/libpcap/cmake/ |
H A D | have_siocglifconf.c | 2 #include <sys/socket.h>
|
/freebsd-13-stable/sys/modules/netgraph/bluetooth/ |
H A D | Makefile | 8 socket \
|
/freebsd-13-stable/sys/netgraph/ |
H A D | ng_socketvar.h | 47 /* Netgraph protocol control block for each socket */ 49 struct socket *ng_socket; /* the socket */
|
/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | if_arp.h | 35 #include <sys/socket.h>
|