LuaYard/LuaNetwork.h

16 lines
235 B
C
Raw Normal View History

2019-08-18 02:00:57 +08:00
#pragma once
#include "LuaVM.h"
#include "SDL2/include/SDL.h"
int InitNetwork(lua_State* L);
struct SocketEventData
{
int fd;
const char* data;
int ret;
int errcode;
};
void HandleNetworkEvent(lua_State* L, const SDL_Event& e);