Data Fields

EGsocket_t Struct Reference
[EGnet]

structure for socket More...

#include <eg_net.h>

Data Fields

int f_fd
unsigned int in_sz
unsigned int out_sz
unsigned port
int s_fd

Detailed Description

structure for socket

Examples:

eg_net.ex.c.

Definition at line 106 of file eg_net.h.


Field Documentation

store the file descriptor used to read/write, note that if the socket is on the server side and is active, these two fd will be differents, but if it is on the client side both fd will be the same.

Definition at line 109 of file eg_net.h.

unsigned int EGsocket_t::in_sz

received bytes without syncronization.

Definition at line 115 of file eg_net.h.

unsigned int EGsocket_t::out_sz

sended bytes without syncronization.

Definition at line 114 of file eg_net.h.

unsigned EGsocket_t::port

store the port of the connection.

Definition at line 113 of file eg_net.h.

store the file descriptor asociated to the socket

Definition at line 108 of file eg_net.h.


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