Motr  M0
socktype Struct Reference
Collaboration diagram for socktype:
Collaboration graph

Data Fields

const char * st_name
 
const struct mover_op_vecst_reader
 
m0_bcount_t(* st_pk_size )(const struct mover *w, const struct sock *s)
 
void(* st_error )(struct mover *m, struct sock *s)
 
int st_proto
 

Detailed Description

Socket type.

This abstract the differences between stream and datagram sockets.

Definition at line 935 of file sock.c.

Field Documentation

◆ st_error

void(* st_error) (struct mover *m, struct sock *s)

Call-back invoked when an error is raised on the socket of this type.

Definition at line 946 of file sock.c.

◆ st_name

const char* st_name

Definition at line 936 of file sock.c.

◆ st_pk_size

m0_bcount_t(* st_pk_size) (const struct mover *w, const struct sock *s)

Default packet size for this socket type.

Definition at line 940 of file sock.c.

◆ st_proto

int st_proto

Default protocol for sockets of this type. See socket(2).

Definition at line 948 of file sock.c.

◆ st_reader

const struct mover_op_vec* st_reader

Default reader opvec for this socket type.

Definition at line 938 of file sock.c.


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