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

Macros

#define my_inet_ntop(a, b, c, d)   inet_ntop(a,b,c,d)
#define my_inet_pton(a, b, c)   inet_pton(a,b,c)

Functions

int  (lua_State *L)
const char *  (p_socket ps, int family, int type)
const char *  (p_socket ps, const char *address, const char *serv, p_timeout tm, struct addrinfo *connecthints)
const char *  (p_socket ps, const char *address, const char *serv, struct addrinfo *bindhints)
const char *  (p_socket ps, int family, p_timeout tm)
const char *  (p_socket server, int family, p_socket client, p_timeout tm)
int  (lua_State *L, p_socket ps, int family)
int  (lua_State *L, p_socket ps, int family)
int  (lua_State *L, int narg, const char *def)
int  (lua_State *L, int narg, const char *def)

Macro Definition Documentation

#define my_inet_ntop (   a,
  b,
  c,
 
)    inet_ntop(a,b,c,d)
var my_inet_ntop (   var,
  var,
  var,
  var 
)    inet_ntop(a,b,c,d)
#define my_inet_pton (   a,
  b,
 
)    inet_pton(a,b,c)
var my_inet_pton (   var,
  var,
  var 
)    inet_pton(a,b,c)
local my_inet_pton (   local,
  local,
  local 
)    inet_pton(a,b,c)

Function Documentation

int inet_open ( lua_State L)
var inet_open ( var  L)
local inet_open ( local  L)
const char* inet_trycreate ( p_socket  ps,
int  family,
int  type 
)
var inet_trycreate ( var  ps,
var  family,
var  type 
)
local inet_trycreate ( local  ps,
local  family,
local  type 
)
const char* inet_tryconnect ( p_socket  ps,
const char *  address,
const char *  serv,
p_timeout  tm,
struct addrinfo *  connecthints 
)
var inet_tryconnect ( var  ps,
var  address,
var  serv,
var  tm,
var  connecthints 
)
local inet_tryconnect ( local  ps,
local  address,
local  serv,
local  tm,
local  connecthints 
)
const char* inet_trybind ( p_socket  ps,
const char *  address,
const char *  serv,
struct addrinfo *  bindhints 
)
var inet_trybind ( var  ps,
var  address,
var  serv,
var  bindhints 
)
local inet_trybind ( local  ps,
local  address,
local  serv,
local  bindhints 
)
const char* inet_trydisconnect ( p_socket  ps,
int  family,
p_timeout  tm 
)
var inet_trydisconnect ( var  ps,
var  family,
var  tm 
)
local inet_trydisconnect ( local  ps,
local  family,
local  tm 
)
const char* inet_tryaccept ( p_socket  server,
int  family,
p_socket  client,
p_timeout  tm 
)
var inet_tryaccept ( var  server,
var  family,
var  client,
var  tm 
)
local inet_tryaccept ( local  server,
local  family,
local  client,
local  tm 
)
int inet_meth_getpeername ( lua_State L,
p_socket  ps,
int  family 
)
var inet_meth_getpeername ( var  L,
var  ps,
var  family 
)
local inet_meth_getpeername ( local  L,
local  ps,
local  family 
)
int inet_meth_getsockname ( lua_State L,
p_socket  ps,
int  family 
)
var inet_meth_getsockname ( var  L,
var  ps,
var  family 
)
local inet_meth_getsockname ( local  L,
local  ps,
local  family 
)
int inet_optfamily ( lua_State L,
int  narg,
const char *  def 
)
var inet_optfamily ( var  L,
var  narg,
var  def 
)
local inet_optfamily ( local  L,
local  narg,
local  def 
)
int inet_optsocktype ( lua_State L,
int  narg,
const char *  def 
)
var inet_optsocktype ( var  L,
var  narg,
var  def 
)
local inet_optsocktype ( local  L,
local  narg,
local  def 
)