I can get this to return true,
Lua__cTCPLink():Connect( "omencraft.com", 80 )
, but that's all I've been able to figure out so far. Any more hints you can give? It seems like once a port is open I need some kind of hook for the plugin to pickup on to send data, and another one to receive data, there aren't any hooks like that in cPluginManager.cpp though.
This always returns a nil value:
Lua__cTCPLink():ReceivedData( data, size )
abd using that as a function in the lua causes a c stack overflow:
function Lua__cTCPLink():ReceivedData( data, size )
print("hello world")
end
Lua__cTCPLink():Connect( "omencraft.com", 80 )
, but that's all I've been able to figure out so far. Any more hints you can give? It seems like once a port is open I need some kind of hook for the plugin to pickup on to send data, and another one to receive data, there aren't any hooks like that in cPluginManager.cpp though.
This always returns a nil value:
Lua__cTCPLink():ReceivedData( data, size )
abd using that as a function in the lua causes a c stack overflow:
function Lua__cTCPLink():ReceivedData( data, size )
print("hello world")
end