/freebsd-10.0-release/contrib/ofed/usr.lib/libibmad/ |
H A D | config.h | 1 #include <sys/socket.h>
|
/freebsd-10.0-release/contrib/ofed/usr.lib/libibumad/ |
H A D | config.h | 1 #include <sys/socket.h>
|
/freebsd-10.0-release/sys/netinet/ |
H A D | sctp_peeloff.h | 39 int sctp_can_peel_off(struct socket *, sctp_assoc_t); 40 int sctp_do_peeloff(struct socket *, struct socket *, sctp_assoc_t);
|
/freebsd-10.0-release/share/doc/psd/20.ipctut/ |
H A D | udgramread.c | 35 #include <sys/socket.h> 48 #define NAME "socket" 51 * This program creates a UNIX domain datagram socket, binds a name to it, 52 * then reads from the socket. 60 /* Create socket from which to read. */ 61 sock = socket(AF_UNIX, SOCK_DGRAM, 0); 63 perror("opening datagram socket"); 70 perror("binding name to datagram socket"); 73 printf("socket -->%s\en", NAME); 74 /* Read from the socket */ [all...] |
H A D | ustreamwrite.c | 35 #include <sys/socket.h> 42 * This program connects to the socket named in the command line and sends a 43 * one line message to that socket. The form of the command line is 54 /* Create socket */ 55 sock = socket(AF_UNIX, SOCK_STREAM, 0); 57 perror("opening stream socket"); 60 /* Connect socket using name specified by command line. */ 66 perror("connecting stream socket"); 70 perror("writing on stream socket");
|
H A D | dgramread.c | 35 #include <sys/socket.h> 48 * This program creates a datagram socket, binds a name to it, then reads 49 * from the socket. 57 /* Create socket from which to read. */ 58 sock = socket(AF_INET, SOCK_DGRAM, 0); 60 perror("opening datagram socket"); 68 perror("binding datagram socket"); 74 perror("getting socket name"); 78 /* Read from the socket */
|
H A D | streamwrite.c | 35 #include <sys/socket.h> 43 * This program creates a socket and initiates a connection with the socket 45 * then the socket is closed, ending the connection. The form of the command 58 /* Create socket */ 59 sock = socket(AF_INET, SOCK_STREAM, 0); 61 perror("opening stream socket"); 64 /* Connect socket using name specified by command line. */ 75 perror("connecting stream socket"); 79 perror("writing on stream socket"); [all...] |
H A D | strchkread.c | 35 #include <sys/socket.h> 57 /* Create socket */ 58 sock = socket(AF_INET, SOCK_STREAM, 0); 60 perror("opening stream socket"); 63 /* Name socket using wildcards */ 68 perror("binding stream socket"); 74 perror("getting socket name");
|
H A D | streamread.c | 35 #include <sys/socket.h> 42 * This program creates a socket and then begins an infinite loop. Each time 57 /* Create socket */ 58 sock = socket(AF_INET, SOCK_STREAM, 0); 60 perror("opening stream socket"); 63 /* Name socket using wildcards */ 68 perror("binding stream socket"); 74 perror("getting socket name"); 98 * Since this program has an infinite loop, the socket "sock" is
|
H A D | ustreamread.c | 35 #include <sys/socket.h> 39 #define NAME "socket" 42 * This program creates a socket in the UNIX domain and binds a name to it. 43 * After printing the socket's name it begins a loop. Each time through the 54 /* Create socket */ 55 sock = socket(AF_UNIX, SOCK_STREAM, 0); 57 perror("opening stream socket"); 60 /* Name socket using file system name */ 64 perror("binding stream socket");
|
H A D | udgramsend.c | 35 #include <sys/socket.h> 53 /* Create socket on which to send. */ 54 sock = socket(AF_UNIX, SOCK_DGRAM, 0); 56 perror("opening datagram socket"); 59 /* Construct name of socket to send to. */
|
/freebsd-10.0-release/sys/netgraph/bluetooth/include/ |
H A D | ng_btsocket_hci_raw.h | 41 * Bluetooth raw HCI socket PCB 45 struct socket *so; /* socket */ 63 * Bluetooth raw HCI socket methods 69 void ng_btsocket_hci_raw_abort (struct socket *); 70 void ng_btsocket_hci_raw_close (struct socket *); 71 int ng_btsocket_hci_raw_attach (struct socket *, int, struct thread *); 72 int ng_btsocket_hci_raw_bind (struct socket *, struct sockaddr *, 74 int ng_btsocket_hci_raw_connect (struct socket *, struct sockaddr *, 76 int ng_btsocket_hci_raw_control (struct socket *, u_lon [all...] |
H A D | ng_btsocket_l2cap.h | 62 * Bluetooth raw L2CAP socket PCB 66 struct socket *so; /* socket */ 89 * Bluetooth raw L2CAP socket methods 95 void ng_btsocket_l2cap_raw_abort (struct socket *); 96 void ng_btsocket_l2cap_raw_close (struct socket *); 97 int ng_btsocket_l2cap_raw_attach (struct socket *, int, struct thread *); 98 int ng_btsocket_l2cap_raw_bind (struct socket *, struct sockaddr *, 100 int ng_btsocket_l2cap_raw_connect (struct socket *, struct sockaddr *, 102 int ng_btsocket_l2cap_raw_control (struct socket *, u_lon [all...] |
H A D | ng_btsocket_sco.h | 65 * Bluetooth SCO socket PCB 69 struct socket *so; /* Pointer to socket */ 76 u_int16_t flags; /* socket flags */ 77 #define NG_BTSOCKET_SCO_CLIENT (1 << 0) /* socket is client */ 80 u_int8_t state; /* socket state */ 81 #define NG_BTSOCKET_SCO_CLOSED 0 /* socket closed */ 83 #define NG_BTSOCKET_SCO_OPEN 2 /* socket open */ 101 * Bluetooth SCO socket methods 107 void ng_btsocket_sco_abort (struct socket *); [all...] |
/freebsd-10.0-release/sys/sys/ |
H A D | sockstate.h | 41 * locked differently. so_state maintains basic socket state protected 42 * by the socket lock. so_qstate holds information about the socket 43 * accept queues. Each socket buffer also has a state field holding 44 * information relevant to that socket buffer (can't send, rcv). Many 49 #define SS_ISCONNECTED 0x0002 /* socket connected to a peer */ 55 #define SS_ISDISCONNECTED 0x2000 /* socket disconnected from peer */ 58 * Protocols can mark a socket as SS_PROTOREF to indicate that, following 59 * pru_detach, they still want the socket to persist, and will free it 62 * sofree() bypasses socket referenc [all...] |
H A D | protosw.h | 40 struct socket; 69 typedef int pr_output_t (struct mbuf *, struct socket *); 71 typedef int pr_ctloutput_t (struct socket *, struct sockopt *); 79 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 | 42 struct socket; 59 int sosetopt(struct socket *so, struct sockopt *sopt); 60 int sogetopt(struct socket *so, struct sockopt *sopt); 67 int do_getopt_accept_filter(struct socket *so, struct sockopt *sopt); 68 int do_setopt_accept_filter(struct socket *so, struct sockopt *sopt); 69 int so_setsockopt(struct socket *so, int level, int optname,
|
H A D | socketvar.h | 51 * Kernel structure per socket. 58 struct socket; 61 * Locking key to struct socket: 71 struct socket { struct 73 short so_type; /* (a) generic type, see socket.h */ 74 short so_options; /* from socket call, see socket.h */ 84 * If so_head is 0, socket is not related to an accept. 85 * For head socket so_incomp queues partially completed connections, 90 * and limit on number of queued connections for this socket [all...] |
/freebsd-10.0-release/sys/ofed/include/linux/ |
H A D | if_arp.h | 30 #include <sys/socket.h>
|
H A D | net.h | 33 #include <sys/socket.h> 37 sock_create_kern(int family, int type, int proto, struct socket **res) 44 sock_getname(struct socket *so, struct sockaddr *addr, int *sockaddr_len, 68 sock_release(struct socket *so)
|
/freebsd-10.0-release/sys/modules/netgraph/bluetooth/ |
H A D | Makefile | 8 socket \
|
/freebsd-10.0-release/sys/netgraph/ |
H A D | ng_socketvar.h | 47 /* Netgraph protocol control block for each socket */ 49 struct socket *ng_socket; /* the socket */
|
/freebsd-10.0-release/tools/regression/netinet6/ip6_sockets/ |
H A D | ip6_sockets.c | 29 #include <sys/socket.h> 38 * Simple regression test to create and close a variety of IPv6 socket types. 50 s = socket(PF_INET6, SOCK_DGRAM, 0); 52 err(-1, "socket(PF_INET6, SOCK_DGRAM, 0)"); 57 * when we close the socket, it goes through the disconnect logic. 59 s = socket(PF_INET6, SOCK_DGRAM, 0); 61 err(-1, "socket(PF_INET6, SOCK_DGRAM, 0)"); 74 s = socket(PF_INET6, SOCK_STREAM, 0); 76 err(-1, "socket(PF_INET6, SOCK_STREAM, 0)"); 82 s = socket(PF_INET [all...] |
/freebsd-10.0-release/tools/regression/netipx/ipxsocket/ |
H A D | ipxsocket.c | 37 #include <sys/socket.h> 59 s = socket(PF_IPX, SOCK_DGRAM, 0); 61 warn("socket(PF_IPX, SOCK_DGRAM, 0)"); 67 s = socket(PF_IPX, SOCK_STREAM, 0); 69 warn("socket(PF_IPX, SOCK_STREAM, 0)"); 75 s = socket(PF_IPX, SOCK_SEQPACKET, 0); 77 warn("socket(PF_IPX, SOCK_SEQPACKET, 0)"); 83 s = socket(PF_IPX, SOCK_RAW, 0); 85 warn("socket(PF_IPX, SOCK_RAW, 0)");
|
/freebsd-10.0-release/contrib/ofed/libsdp/src/linux/ |
H A D | sdp_inet.h | 33 #include <sys/socket.h> 35 #define AF_INET_SDP 27 /* SDP socket protocol family */ 36 #define AF_INET6_SDP 28 /* SDP socket protocol family */ 42 #define AF_INET6_SDP 32 /* SDP socket protocol family */
|