aboutsummaryrefslogtreecommitdiff
path: root/src/unixdgram.h
diff options
context:
space:
mode:
authorenginix <wnd1024@gmail.com>2016-12-25 23:15:12 +0800
committerenginix <wnd1024@gmail.com>2016-12-25 23:33:10 +0800
commit3a33c37b9ce852d0b3531e82c6ffdb47bb937f0a (patch)
treee481f825991151cd164435faeb4b5e1b779526ae /src/unixdgram.h
parentac3201d62024b397e8d6e3376822176d681811ec (diff)
downloadluasocket-3a33c37b9ce852d0b3531e82c6ffdb47bb937f0a.tar.gz
luasocket-3a33c37b9ce852d0b3531e82c6ffdb47bb937f0a.tar.bz2
luasocket-3a33c37b9ce852d0b3531e82c6ffdb47bb937f0a.zip
rename unix.tcp to unix.stream, unix.udp to unix.dgram
Diffstat (limited to 'src/unixdgram.h')
-rw-r--r--src/unixdgram.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/unixdgram.h b/src/unixdgram.h
new file mode 100644
index 0000000..7187966
--- /dev/null
+++ b/src/unixdgram.h
@@ -0,0 +1,20 @@
1#ifndef UNIXDGRAM_H
2#define UNIXDGRAM_H
3/*=========================================================================*\
4* DGRAM object
5* LuaSocket toolkit
6*
7* The dgram.h module provides LuaSocket with support for DGRAM protocol
8* (AF_INET, SOCK_DGRAM).
9*
10* Two classes are defined: connected and unconnected. DGRAM objects are
11* originally unconnected. They can be "connected" to a given address
12* with a call to the setpeername function. The same function can be used to
13* break the connection.
14\*=========================================================================*/
15
16#include "unix.h"
17
18int unixdgram_open(lua_State *L);
19
20#endif /* UNIXDGRAM_H */