mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 15:55:39 +02:00
Changes after migration to dll
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)));
|
||||||
|
|||||||
Reference in New Issue
Block a user