qwertylol Posted April 16, 2007 Posted April 16, 2007 If I want to write a program to listen to a port for as long as I want, do I re TCPListen every loop or do I set it to infinity? AutoItSetOption ( "TCPtimeout" [, 1000000000000000000000000000000000000] )
McGod Posted April 16, 2007 Posted April 16, 2007 While 1 $recv = TCPRecv($sock, 9653) If @error Then Exit If $recv = "" Then ContinueLoop ;Parse Recv here WEnd [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
qwertylol Posted April 16, 2007 Author Posted April 16, 2007 In the helpfile TCPRecv used SocketToIP in the example The helpfile used a function known to the reference book ! LOL
qwertylol Posted April 16, 2007 Author Posted April 16, 2007 in the same example it also said #include <GUIConstants.au3> where did this au3 come from?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now