2002-07-03 19:06:54 +00:00
|
|
|
/*=========================================================================*\
|
2003-05-25 01:54:13 +00:00
|
|
|
* Internet domain functions
|
2003-03-28 21:08:50 +00:00
|
|
|
*
|
2002-07-03 19:06:54 +00:00
|
|
|
* RCS ID: $Id$
|
|
|
|
\*=========================================================================*/
|
2003-05-25 01:54:13 +00:00
|
|
|
#ifndef INET_H
|
|
|
|
#define INET_H
|
2002-07-03 19:06:54 +00:00
|
|
|
|
|
|
|
#include <lua.h>
|
2003-05-25 01:54:13 +00:00
|
|
|
#include "sock.h"
|
2002-07-03 19:06:54 +00:00
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------*\
|
|
|
|
* Exported functions
|
|
|
|
\*-------------------------------------------------------------------------*/
|
|
|
|
void inet_open(lua_State *L);
|
|
|
|
|
2003-05-25 01:54:13 +00:00
|
|
|
const char *inet_tryconnect(p_sock ps, const char *address,
|
|
|
|
unsigned short port);
|
|
|
|
const char *inet_trybind(p_sock ps, const char *address,
|
|
|
|
unsigned short port, int backlog);
|
|
|
|
const char *inet_trycreate(p_sock ps, int type);
|
|
|
|
|
|
|
|
int inet_meth_getpeername(lua_State *L, p_sock ps);
|
|
|
|
int inet_meth_getsockname(lua_State *L, p_sock ps);
|
2002-07-03 19:06:54 +00:00
|
|
|
|
|
|
|
#endif /* INET_H_ */
|