Changes after migration to dll

This commit is contained in:
VladMordock
2021-02-22 16:32:03 +01:00
parent fc659fe184
commit 1546ed2894
2 changed files with 2 additions and 2 deletions

View File

@@ -236,7 +236,7 @@ end
Perun.ConnectToPerun = function () Perun.ConnectToPerun = function ()
-- Connects to Perun server -- Connects to Perun server
Perun.dll_main.connect(Perun.TCPPerunHost, Perun.TCPTargetPort) Perun.dll_main.tcpConnect(Perun.TCPPerunHost, Perun.TCPTargetPort)
Perun.AddLog(string.format("Connecting to TCP server %s:%i", Perun.TCPPerunHost, Perun.TCPTargetPort), 2) Perun.AddLog(string.format("Connecting to TCP server %s:%i", Perun.TCPPerunHost, Perun.TCPTargetPort), 2)
end end

View File

@@ -30,7 +30,7 @@ static int tcpConnect(lua_State* luaState) {
} }
static int tcpSend(lua_State* luaState) { static int tcpSend(lua_State* luaState) {
// Send frame over TCP socket // Send frame over TCP socket
// Send over the socket // Send over the socket
tcpConnection.socketSendData(new std::string(lua_tolstring(luaState, 1, 0))); tcpConnection.socketSendData(new std::string(lua_tolstring(luaState, 1, 0)));