PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
socket_family_ops_t Struct Reference

Socket Family operations structure. More...

#include <socket_family.h>

Collaboration diagram for socket_family_ops_t:

Data Fields

uint64_t(* init )(socket_t *sock)
 
void(* deinit )(socket_t *sock)
 
uint64_t(* bind )(socket_t *sock, const char *address)
 
uint64_t(* listen )(socket_t *sock, uint32_t backlog)
 
uint64_t(* connect )(socket_t *sock, const char *address)
 
uint64_t(* accept )(socket_t *sock, socket_t *newSock, mode_t mode)
 
uint64_t(* send )(socket_t *sock, const void *buffer, uint64_t count, uint64_t *offset, mode_t mode)
 
uint64_t(* recv )(socket_t *sock, void *buffer, uint64_t count, uint64_t *offset, mode_t mode)
 
wait_queue_t *(* poll )(socket_t *sock, poll_events_t *revents)
 

Detailed Description

Socket Family operations structure.

Definition at line 48 of file socket_family.h.

Field Documentation

◆ init

uint64_t(* socket_family_ops_t::init) (socket_t *sock)

Definition at line 50 of file socket_family.h.

◆ deinit

void(* socket_family_ops_t::deinit) (socket_t *sock)

Definition at line 51 of file socket_family.h.

◆ bind

uint64_t(* socket_family_ops_t::bind) (socket_t *sock, const char *address)

Definition at line 52 of file socket_family.h.

◆ listen

uint64_t(* socket_family_ops_t::listen) (socket_t *sock, uint32_t backlog)

Definition at line 53 of file socket_family.h.

◆ connect

uint64_t(* socket_family_ops_t::connect) (socket_t *sock, const char *address)

Definition at line 54 of file socket_family.h.

◆ accept

uint64_t(* socket_family_ops_t::accept) (socket_t *sock, socket_t *newSock, mode_t mode)

Definition at line 55 of file socket_family.h.

◆ send

uint64_t(* socket_family_ops_t::send) (socket_t *sock, const void *buffer, uint64_t count, uint64_t *offset, mode_t mode)

Definition at line 56 of file socket_family.h.

◆ recv

uint64_t(* socket_family_ops_t::recv) (socket_t *sock, void *buffer, uint64_t count, uint64_t *offset, mode_t mode)

Definition at line 57 of file socket_family.h.

◆ poll

wait_queue_t *(* socket_family_ops_t::poll) (socket_t *sock, poll_events_t *revents)

Definition at line 58 of file socket_family.h.


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