Hallo,
ich möchte gerne ein TCP/IP Server coden der das System auf Kommando per Telnet herrunterfährt:
TCPStartUp()
$MainSocket = TCPListen("0.0.0.0", "1111")
Dim $ConnectedSocket = -1
Do
$ConnectedSocket = TCPAccept($MainSocket)
Until $ConnectedSocket <> -1
Dim $recv
while(1)
$recv = TCPRecv( $ConnectedSocket, 2048 )
if $recv="Shutdown" Then Shutdown(1) EndIf
; mehr funktionen...
WEnd
TCPShutDown()
[/autoit]vielen dank im vorraus!
viele grüße gespenst