BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB Reference

activesock.h File Reference

Active socket. More...

Go to the source code of this file.

Data Structures

struct  pj_activesock_cb
 
struct  pj_activesock_cfg
 

Typedefs

typedef struct pj_activesock_t pj_activesock_t
 

Functions

void pj_activesock_cfg_default (pj_activesock_cfg *cfg)
 
pj_status_t pj_activesock_create (pj_pool_t *pool, pj_sock_t sock, int sock_type, const pj_activesock_cfg *opt, pj_ioqueue_t *ioqueue, const pj_activesock_cb *cb, void *user_data, pj_activesock_t **p_asock)
 
pj_status_t pj_activesock_create_udp (pj_pool_t *pool, const pj_sockaddr *addr, const pj_activesock_cfg *opt, pj_ioqueue_t *ioqueue, const pj_activesock_cb *cb, void *user_data, pj_activesock_t **p_asock, pj_sockaddr *bound_addr)
 
pj_status_t pj_activesock_close (pj_activesock_t *asock)
 
pj_status_t pj_activesock_set_user_data (pj_activesock_t *asock, void *user_data)
 
void * pj_activesock_get_user_data (pj_activesock_t *asock)
 
pj_status_t pj_activesock_start_read (pj_activesock_t *asock, pj_pool_t *pool, unsigned buff_size, pj_uint32_t flags)
 
pj_status_t pj_activesock_start_read2 (pj_activesock_t *asock, pj_pool_t *pool, unsigned buff_size, void *readbuf[], pj_uint32_t flags)
 
pj_status_t pj_activesock_start_recvfrom (pj_activesock_t *asock, pj_pool_t *pool, unsigned buff_size, pj_uint32_t flags)
 
pj_status_t pj_activesock_start_recvfrom2 (pj_activesock_t *asock, pj_pool_t *pool, unsigned buff_size, void *readbuf[], pj_uint32_t flags)
 
pj_status_t pj_activesock_send (pj_activesock_t *asock, pj_ioqueue_op_key_t *send_key, const void *data, pj_ssize_t *size, unsigned flags)
 
pj_status_t pj_activesock_sendto (pj_activesock_t *asock, pj_ioqueue_op_key_t *send_key, const void *data, pj_ssize_t *size, unsigned flags, const pj_sockaddr_t *addr, int addr_len)
 
pj_status_t pj_activesock_start_accept (pj_activesock_t *asock, pj_pool_t *pool)
 
pj_status_t pj_activesock_start_connect (pj_activesock_t *asock, pj_pool_t *pool, const pj_sockaddr_t *remaddr, int addr_len)
 

Detailed Description

Active socket.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.