103int socket(
int domain,
int type,
int protocol)
104 __attribute__ ((weak));
107 __attribute__ ((weak));
110 __attribute__ ((weak));
113 __attribute__ ((weak));
116 __attribute__ ((weak));
118ssize_t
recv(
int socket,
void *buffer,
size_t length,
int flags)
119 __attribute__ ((weak));
121ssize_t
send(
int socket,
const void *buffer,
size_t length,
int flags)
122 __attribute__ ((weak));
125 const void *option_value,
socklen_t option_len)
126 __attribute__ ((weak));
129 void *option_value,
socklen_t *option_len)
130 __attribute__ ((weak));
144int socket(
int domain,
int type,
int protocol)
225ssize_t
recv(
int socket,
void *buffer,
size_t length,
int flags)
239ssize_t
send(
int socket,
const void *buffer,
size_t length,
int flags)
256 const void *option_value,
socklen_t option_len)
273 void *option_value,
socklen_t *option_len)
ssize_t recv(int socket, void *buffer, size_t length, int flags)
Receive a message from a connection-mode or connectionless-mode socket.
int accept(int socket, struct sockaddr *address, socklen_t *address_len)
Accept a new connection on a socket.
int setsockopt(int socket, int level, int option_name, const void *option_value, socklen_t option_len)
Set the socket options.
int bind(int socket, const struct sockaddr *address, socklen_t address_len)
Bind a name to a socket.
ssize_t send(int socket, const void *buffer, size_t length, int flags)
Initiate transmission of a message from the specified socket.
int getsockopt(int socket, int level, int option_name, void *option_value, socklen_t *option_len)
Get the socket options.
int listen(int socket, int backlog)
Mark a connection-mode socket, specified by the socket argument, as accepting connections.
int connect(int socket, const struct sockaddr *address, socklen_t address_len)
Connect a socket.
int socket(int domain, int type, int protocol)
Create an unbound socket in a communications domain.
static int fd_lookup(File *file)
Looks up a file descriptor corresponding to a given File reference.
ssize_t write(File *file, const void *buf, size_t count) override
Write to a file or device.
bool select(File *file, int mode) override
Device select method.
int ioctl(File *file, unsigned long int key, unsigned long data) override
Request an ioctl transaction.
ssize_t read(File *file, void *buf, size_t count) override
Read from a file or device.
uint32_t socklen_t
type of sockaddr lenth