AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
sock_ops Struct Reference

A domain's socket operations. More...

#include <socket.h>

Data Fields

int(*) accept (struct file *socket, struct file *conn, const struct sockaddr *addr, socklen_t *len)
int(*) bind (struct file *socket, const struct sockaddr *addr, socklen_t len)
int(*) connect (struct file *socket, const struct sockaddr *addr, socklen_t len)
int(*) listen (struct file *socket, int backlog)
ssize_t(*) recv (struct file *socket, struct iobuf *io, int flags, struct sockaddr *from, socklen_t *fromlen)
ssize_t(*) send (struct file *socket, struct iobuf *io, int flags, const struct sockaddr *to, socklen_t tolen)
int(*) getname (struct file *socket, struct sockaddr *addr, socklen_t *len, int peer)
int(*) getsockopt (struct file *socket, int level, int name, void *val, socklen_t *len)
int(*) setsockopt (struct file *socket, int level, int name, const void *val, socklen_t len)
int(*) ioctl (struct file *socket, int request, void *argp)
int(*) can_read (struct file *socket, size_t len)
int(*) can_write (struct file *socket, size_t len)
struct waitq *(*) wait_queue (struct file *socket, int write)
int(*) shutdown (struct file *socket, int how)
int(*) shut (struct file *socket, int how)

Detailed Description

A domain's socket operations.

Definition at line 29 of file socket.h.

Field Documentation

◆ accept

int(*) sock_ops::accept(struct file *socket, struct file *conn, const struct sockaddr *addr, socklen_t *len)

Definition at line 30 of file socket.h.

◆ bind

int(*) sock_ops::bind(struct file *socket, const struct sockaddr *addr, socklen_t len)

Definition at line 31 of file socket.h.

◆ can_read

int(*) sock_ops::can_read(struct file *socket, size_t len)

Definition at line 55 of file socket.h.

◆ can_write

int(*) sock_ops::can_write(struct file *socket, size_t len)

Definition at line 56 of file socket.h.

◆ connect

int(*) sock_ops::connect(struct file *socket, const struct sockaddr *addr, socklen_t len)

Definition at line 32 of file socket.h.

◆ getname

int(*) sock_ops::getname(struct file *socket, struct sockaddr *addr, socklen_t *len, int peer)

Definition at line 44 of file socket.h.

◆ getsockopt

int(*) sock_ops::getsockopt(struct file *socket, int level, int name, void *val, socklen_t *len)

Definition at line 48 of file socket.h.

Referenced by socket_getsockopt().

◆ ioctl

int(*) sock_ops::ioctl(struct file *socket, int request, void *argp)

Definition at line 52 of file socket.h.

◆ listen

int(*) sock_ops::listen(struct file *socket, int backlog)

Definition at line 33 of file socket.h.

◆ recv

ssize_t(*) sock_ops::recv(struct file *socket, struct iobuf *io, int flags, struct sockaddr *from, socklen_t *fromlen)

Definition at line 38 of file socket.h.

◆ send

ssize_t(*) sock_ops::send(struct file *socket, struct iobuf *io, int flags, const struct sockaddr *to, socklen_t tolen)

Definition at line 40 of file socket.h.

◆ setsockopt

int(*) sock_ops::setsockopt(struct file *socket, int level, int name, const void *val, socklen_t len)

Definition at line 49 of file socket.h.

Referenced by socket_setsockopt().

◆ shut

int(*) sock_ops::shut(struct file *socket, int how)

Definition at line 66 of file socket.h.

◆ shutdown

int(*) sock_ops::shutdown(struct file *socket, int how)

Definition at line 63 of file socket.h.

◆ wait_queue

struct waitq *(*) sock_ops::wait_queue(struct file *socket, int write)

Definition at line 56 of file socket.h.


The documentation for this struct was generated from the following file: