MCPcopy Create free account
hub / github.com/Tencent/UnLua / meth_send

Function meth_send

Plugins/UnLuaExtensions/LuaSocket/Source/src/tcp.cpp:148–151  ·  view source on GitHub ↗

=========================================================================*\ * Lua methods \*=========================================================================*/ -------------------------------------------------------------------------*\ * Just call buffered IO methods \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

146* Just call buffered IO methods
147\*-------------------------------------------------------------------------*/
148static int meth_send(lua_State *L) {
149 p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1);
150 return buffer_meth_send(L, &tcp->buf);
151}
152
153static int meth_receive(lua_State *L) {
154 p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1);

Callers

nothing calls this directly

Calls 2

auxiliar_checkclassFunction · 0.85
buffer_meth_sendFunction · 0.85

Tested by

no test coverage detected