cocos2d-x  3.0-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
luasocket_io.h File Reference
#include <stdio.h>
#include "lua.h"
#include "timeout.h"

Classes

struct  t_io
 

Typedefs

typedef const char *(* p_error )(void *ctx, int err)
typedef int(* p_send )(void *ctx, const char *data, size_t count, size_t *sent, p_timeout tm)
typedef int(* p_recv )(void *ctx, char *data, size_t count, size_t *got, p_timeout tm)
typedef t_iop_io

Enumerations

enum  { IO_DONE = 0, IO_TIMEOUT = -1, IO_CLOSED = -2, IO_UNKNOWN = -3 }
 

Functions

void  (p_io io, p_send send, p_recv recv, p_error error, void *ctx)
const char *  (int err)

Typedef Documentation

typedef const char*(* p_error)(void
*ctx,int err)
typedef const char*(* p_error)(void
*ctx,int err)
typedef const char*(* p_error)(void
*ctx,int err)
typedef t_io* p_io
var p_io
local p_io
typedef int(* p_recv)(void
*ctx,char *data,size_t count,size_t
*got,p_timeout tm)
typedef int(* p_recv)(void
*ctx,char *data,size_t count,size_t
*got,p_timeout tm)
typedef int(* p_recv)(void
*ctx,char *data,size_t count,size_t
*got,p_timeout tm)
typedef int(* p_send)(void
*ctx,const char *data,size_t
count,size_t *sent,p_timeout
tm)
typedef int(* p_send)(void
*ctx,const char *data,size_t
count,size_t *sent,p_timeout
tm)
typedef int(* p_send)(void
*ctx,const char *data,size_t
count,size_t *sent,p_timeout
tm)

Enumeration Type Documentation

anonymous enum
Enumerator
IO_DONE 
IO_TIMEOUT 
IO_CLOSED 
IO_UNKNOWN 
var enum
Enumerator
IO_DONE 
IO_TIMEOUT 
IO_CLOSED 
IO_UNKNOWN 
local enum
Enumerator
IO_DONE 
IO_TIMEOUT 
IO_CLOSED 
IO_UNKNOWN 

Function Documentation

void io_init ( p_io  io,
p_send  send,
p_recv  recv,
p_error  error,
void *  ctx 
)
var io_init ( var  io,
var  send,
var  recv,
var  error,
var  ctx 
)
local io_init ( local  io,
local  send,
local  recv,
local  error,
local  ctx 
)
const char* io_strerror ( int  err)
var io_strerror ( var  err)
local io_strerror ( local  err)