Hello everyone!
Kip - I'm loving your application, it's great! However, I'm having issues getting the _TCP_RegisterEvent to work when called from inside a function.
Why do I want to do this? I want to create a TCP Server Service - using the Service UDF.
#include <TCP.au3>
#include <_SQL.au3>
#include <array.au3>
#include <Service.au3>
#include <File.au3>
...
func main()
$cServer = _TCP_Server_Create(88)
AddToLog("Server Created on Port 88")
_TCP_RegisterEvent($cServer, $TCP_NEWCLIENT, "NewClient")
_TCP_RegisterEvent($cServer, $TCP_DISCONNECT, "ClientDisconnect")
_TCP_RegisterEvent($cServer, $TCP_RECEIVE, "DataReceived")
$Update = False
AddToLog("Starting Loop")
while 1
Sleep(1000)
WEnd
EndFunc
...
The service part starts fine, clients can connect - but the three registered events do not get registered and nothing happens.
Any thoughts anyone?
Many thanks,
Spence