Opt('TrayAutoPause', 0) TCPStartup() OnAutoItExitRegister("ex1") Local $iSocket = TCPListen("192.168.4.123", 65432) If $iSocket = -1 Then Exit ; 创建监听不成功就退出 Local $sRecv, $StringRev While 1 $sRecv = TCPRecv($iSocket, 2048) If $sRecv <> "" Then $StringRev = $sRecv $StringRev = BinaryToString($sRecv, 4) MsgBox(0,"提示",$StringRev) EndIf WEnd Func ex1() TCPCloseSocket($iSocket) TCPShutdown() EndFunc
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-11-16 18:26 , Processed in 0.079619 second(s), 23 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.