PatchworkOS
Loading...
Searching...
No Matches
socket_family_ops_t Struct Reference

Socket Family operations structure. More...

#include <socket_family.h>

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)
 
uint64_t(* send )(socket_t *sock, const void *buffer, uint64_t count, uint64_t *offset)
 
uint64_t(* recv )(socket_t *sock, void *buffer, uint64_t count, uint64_t *offset)
 
wait_queue_t *(* poll )(socket_t *sock, poll_events_t *revents)
 
uint64_t(* shutdown )(socket_t *socket, uint32_t how)
 

Detailed Description

Socket Family operations structure.

Definition at line 47 of file socket_family.h.

Field Documentation

◆ accept

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

Definition at line 54 of file socket_family.h.

Referenced by socket_accept_open().

◆ bind

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

Definition at line 51 of file socket_family.h.

Referenced by socket_ctl_bind().

◆ connect

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

Definition at line 53 of file socket_family.h.

Referenced by socket_ctl_connect().

◆ deinit

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

Definition at line 50 of file socket_family.h.

Referenced by socket_family_register(), socket_free(), and socket_new().

◆ init

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

Definition at line 49 of file socket_family.h.

Referenced by socket_family_register(), and socket_new().

◆ listen

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

Definition at line 52 of file socket_family.h.

Referenced by socket_ctl_listen().

◆ poll

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

Definition at line 57 of file socket_family.h.

Referenced by socket_data_poll().

◆ recv

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

Definition at line 56 of file socket_family.h.

Referenced by socket_data_read().

◆ send

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

Definition at line 55 of file socket_family.h.

Referenced by socket_data_write().

◆ shutdown

uint64_t(* socket_family_ops_t::shutdown) (socket_t *socket, uint32_t how)

Definition at line 58 of file socket_family.h.


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