2016-12-25 16:15:12 +01:00
|
|
|
#ifndef UNIXDGRAM_H
|
|
|
|
#define UNIXDGRAM_H
|
2016-06-24 15:23:00 +02:00
|
|
|
/*=========================================================================*\
|
2016-12-25 16:15:12 +01:00
|
|
|
* DGRAM object
|
2016-06-24 15:23:00 +02:00
|
|
|
* LuaSocket toolkit
|
|
|
|
*
|
2016-12-25 16:15:12 +01:00
|
|
|
* The dgram.h module provides LuaSocket with support for DGRAM protocol
|
2016-06-24 15:23:00 +02:00
|
|
|
* (AF_INET, SOCK_DGRAM).
|
|
|
|
*
|
2016-12-25 16:15:12 +01:00
|
|
|
* Two classes are defined: connected and unconnected. DGRAM objects are
|
2016-06-24 15:23:00 +02:00
|
|
|
* originally unconnected. They can be "connected" to a given address
|
|
|
|
* with a call to the setpeername function. The same function can be used to
|
|
|
|
* break the connection.
|
|
|
|
\*=========================================================================*/
|
|
|
|
|
|
|
|
#include "unix.h"
|
|
|
|
|
2019-02-28 05:02:01 +01:00
|
|
|
#pragma GCC visibility push(hidden)
|
|
|
|
|
2016-12-25 16:15:12 +01:00
|
|
|
int unixdgram_open(lua_State *L);
|
2016-06-24 15:23:00 +02:00
|
|
|
|
2019-02-28 05:02:01 +01:00
|
|
|
#pragma GCC visibility pop
|
|
|
|
|
2016-12-25 16:15:12 +01:00
|
|
|
#endif /* UNIXDGRAM_H */
|