LMMS
Loading...
Searching...
No Matches
eel_net_state Class Reference

#include <eel_net.h>

Classes

struct  connection_state

Public Types

enum  { STATE_FREE =0 , STATE_RESOLVING , STATE_CONNECTED , STATE_ERR }
enum  { CONNECTION_ID_BASE =0x110000 }

Public Member Functions

 eel_net_state (int max_con, JNL_IAsyncDNS *dns)
 ~eel_net_state ()
EEL_F onConnect (char *hostNameOwned, int port, int block)
EEL_F onClose (void *opaque, EEL_F handle)
EEL_F set_block (void *opaque, EEL_F handle, bool block)
EEL_F onListen (void *opaque, EEL_F handle, int mode, EEL_F *ifStr, EEL_F *ipOut)
int __run_connect (connection_state *cs, unsigned int ip)
int __run (connection_state *cs)
int do_send (void *opaque, EEL_F h, const char *src, int len)
int do_recv (void *opaque, EEL_F h, char *buf, int maxlen)

Public Attributes

WDL_TypedBuf< connection_statem_cons
WDL_IntKeyedArray< SOCKET > m_listens
JNL_IAsyncDNS * m_dns

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
STATE_FREE 
STATE_RESOLVING 
STATE_CONNECTED 
STATE_ERR 

◆ anonymous enum

anonymous enum
Enumerator
CONNECTION_ID_BASE 

Constructor & Destructor Documentation

◆ eel_net_state()

eel_net_state::eel_net_state ( int max_con,
JNL_IAsyncDNS * dns )

◆ ~eel_net_state()

eel_net_state::~eel_net_state ( )

Member Function Documentation

◆ __run()

int eel_net_state::__run ( connection_state * cs)

◆ __run_connect()

int eel_net_state::__run_connect ( connection_state * cs,
unsigned int ip )

◆ do_recv()

int eel_net_state::do_recv ( void * opaque,
EEL_F h,
char * buf,
int maxlen )

◆ do_send()

int eel_net_state::do_send ( void * opaque,
EEL_F h,
const char * src,
int len )

◆ onClose()

EEL_F eel_net_state::onClose ( void * opaque,
EEL_F handle )

◆ onConnect()

EEL_F eel_net_state::onConnect ( char * hostNameOwned,
int port,
int block )

◆ onListen()

EEL_F eel_net_state::onListen ( void * opaque,
EEL_F handle,
int mode,
EEL_F * ifStr,
EEL_F * ipOut )

◆ set_block()

EEL_F eel_net_state::set_block ( void * opaque,
EEL_F handle,
bool block )

Member Data Documentation

◆ m_cons

WDL_TypedBuf<connection_state> eel_net_state::m_cons

◆ m_dns

JNL_IAsyncDNS* eel_net_state::m_dns

◆ m_listens

WDL_IntKeyedArray<SOCKET> eel_net_state::m_listens

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