Lines Matching full:socket

2  * NET		An implementation of the SOCKET network access protocol.
21 #include <linux/socket.h>
22 #include <asm/socket.h>
49 SS_UNCONNECTED, /* unconnected to any socket */
51 SS_CONNECTED, /* connected to socket */
78 * enum sock_type - Socket types
79 * @SOCK_STREAM: stream (connection) socket
80 * @SOCK_DGRAM: datagram (conn.less) socket
81 * @SOCK_RAW: raw socket
83 * @SOCK_SEQPACKET: sequential packet socket
84 * @SOCK_DCCP: Datagram Congestion Control Protocol socket
88 * When adding some new socket type please
89 * grep ARCH_HAS_SOCKET_TYPE include/asm-* /socket.h, at least MIPS
107 /* Flags for socket, socketpair, accept4 */
129 * struct socket - general BSD socket
130 * @state: socket state (%SS_CONNECTED, etc)
131 * @type: socket type (%SOCK_STREAM, etc)
132 * @flags: socket flags (%SOCK_ASYNC_NOSPACE, etc)
133 * @ops: protocol specific socket operations
135 * @sk: internal networking protocol agnostic socket representation
138 struct socket { struct
164 int (*release) (struct socket *sock); argument
165 int (*bind) (struct socket *sock,
168 int (*connect) (struct socket *sock,
171 int (*socketpair)(struct socket *sock1,
172 struct socket *sock2);
173 int (*accept) (struct socket *sock,
174 struct socket *newsock, int flags);
175 int (*getname) (struct socket *sock,
178 unsigned int (*poll) (struct file *file, struct socket *sock,
180 int (*ioctl) (struct socket *sock, unsigned int cmd,
183 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
186 int (*listen) (struct socket *sock, int len);
187 int (*shutdown) (struct socket *sock, int flags);
188 int (*setsockopt)(struct socket *sock, int level,
190 int (*getsockopt)(struct socket *sock, int level,
193 int (*compat_setsockopt)(struct socket *sock, int level,
195 int (*compat_getsockopt)(struct socket *sock, int level,
198 int (*sendmsg) (struct kiocb *iocb, struct socket *sock,
200 int (*recvmsg) (struct kiocb *iocb, struct socket *sock,
203 int (*mmap) (struct file *file, struct socket *sock,
205 ssize_t (*sendpage) (struct socket *sock, struct page *page,
207 ssize_t (*splice_read)(struct socket *sock, loff_t *ppos,
216 int (*create)(struct net *net, struct socket *sock,
231 extern int sock_wake_async(struct socket *sk, int how, int band);
235 struct socket **res, int kern);
237 struct socket **res);
239 struct socket **res);
241 struct socket **res);
242 extern void sock_release(struct socket *sock);
243 extern int sock_sendmsg(struct socket *sock, struct msghdr *msg,
245 extern int sock_recvmsg(struct socket *sock, struct msghdr *msg,
247 extern int sock_map_fd(struct socket *sock, int flags);
248 extern struct socket *sockfd_lookup(int fd, int *err);
255 extern int kernel_sendmsg(struct socket *sock, struct msghdr *msg,
257 extern int kernel_recvmsg(struct socket *sock, struct msghdr *msg,
261 extern int kernel_bind(struct socket *sock, struct sockaddr *addr,
263 extern int kernel_listen(struct socket *sock, int backlog);
264 extern int kernel_accept(struct socket *sock, struct socket **newsock,
266 extern int kernel_connect(struct socket *sock, struct sockaddr *addr,
268 extern int kernel_getsockname(struct socket *sock, struct sockaddr *addr,
270 extern int kernel_getpeername(struct socket *sock, struct sockaddr *addr,
272 extern int kernel_getsockopt(struct socket *sock, int level, int optname,
274 extern int kernel_setsockopt(struct socket *sock, int level, int optname,
276 extern int kernel_sendpage(struct socket *sock, struct page *page, int offset,
278 extern int kernel_sock_ioctl(struct socket *sock, int cmd, unsigned long arg);
279 extern int kernel_sock_shutdown(struct socket *sock,