CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
queue.h File Reference
#include <cx/obj.h>
#include <cx/struct.h>
#include <cx/net/net_shared.h>
#include <cx/thread.h>
#include <cx/net/pool.h>

Go to the source code of this file.

Data Structures

struct  NetQueue
 NetQueue manages one or more sockets and a thread pool of workers. More...
 

Macros

#define netqueuePresetClient(conf)   NetQueue_presetClient(conf)
 
#define netqueuePresetServer(conf)   NetQueue_presetServer(conf)
 
#define netqueueConnect(self, host, port, handlers, ctx)   NetQueue_connect(NetQueue(self), host, port, handlers, ctx)
 
#define netqueueConnectPrep(self, host, port, handlers, ctx, prep, prepctx)   NetQueue_connectPrep(NetQueue(self), host, port, handlers, ctx, prep, prepctx)
 
#define netqueueListen(self, addr, backlog, handlers, ctx)   NetQueue_listen(NetQueue(self), addr, backlog, handlers, ctx)
 
#define netqueueSetHandlers(self, handlers, ctx)   NetQueue_setHandlers(NetQueue(self), handlers, ctx)
 
#define netqueueSetHandlersObj(self, handlers, ctx)   NetQueue_setHandlersObj(NetQueue(self), handlers, ObjInst(ctx))
 
#define netqueuePromoteFlow(self, sock, peer)   NetQueue_promoteFlow(NetQueue(self), sock, peer)
 
#define netqueueDroppedNoBuf(self)   NetQueue_droppedNoBuf(NetQueue(self))
 
#define netqueueAddSocket(self, socket)   (self)->_->addSocket(NetQueue(self), socket)
 
#define netqueueRemoveSocket(self, socket)   (self)->_->removeSocket(NetQueue(self), socket)
 
#define netqueueSocket(self, type)   (self)->_->socket(NetQueue(self), type)
 
#define netqueueShutdown(self, timeout)   (self)->_->shutdown(NetQueue(self), timeout)
 
#define netqueueTick(self, wait)   (self)->_->tick(NetQueue(self), wait)
 

Typedefs

typedef struct NetQueue NetQueue
 NetQueue manages one or more sockets and a thread pool of workers.
 

Detailed Description

Note
This file is automatically generated from net/queue.cxh

Definition in file queue.h.