SteveJM Posted January 23 Posted January 23 I apologise if this is the wrong place. I cannot see where to try and report what seems to be a misleading description of the action of TCPAccept(). One of the great things about Autoit is the excellent help file. I was somewhat baffled by the TCPAccept description; I made a small experiment and now think I understand. I wanted to try and help the next guy, but could not figure out how. The Forum for help file discussion that I found with Google is closed to new topics. The help file implies that if you get a return value of -1, you will also get a non zero @error. My understanding is that TCPAccept is non blocking. The example code in the help file runs in a loop, with a message thrown up for non zero @error. It clearly runs round the loop many times with no message (I added a loop counter to be sure), so it must have been returning -1 with @error=0. This behaviour makes perfect sense while waiting for a connection. It was just the documentation that had me scratching my head. Perhaps someone could tell me if I have got it wrong. Also where/how, if at all, should I suggest a clarification to the help file.
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