Having problems listening to a port...
Im running TVersity media streamer on port 41952 on ip 192.168.0.3 , problem is the cpu keep sleeping whilst streaming
so basically all im trying to do is check the port to see if its active or not ..
tried
$g_IP = @IPAddress1 ; 192.168.0.3 -ip of server
; Start The TCP Services
;==============================================
TCPStartUp()
; Create a Listening "SOCKET"
;==============================================
$MainSocket = TCPConnect($g_IP, 41952)
If $MainSocket = -1 Then
msgbox(16,"",@error)
Else
msgbox(16,"","success!!")
Endif
which should of worked but returns an error of "10013"
tried TCPconnect and that worked ok
$g_IP = @IPAddress1 ; 192.168.0.3 -ip of server
; Start The TCP Services
;==============================================
TCPStartUp()
; Create a Listening "SOCKET"
;==============================================
$MainSocket = TCPConnect($g_IP, 41952)
If $MainSocket = -1 Then
msgbox(16,"","error")
Else
msgbox(16,"","success!!")
Endif
but this doesnt help me as the servers running 24/7 so the connection as always there
Any ideas or a better way to do it??
Cheers