JohnBailey Posted August 13, 2007 Share Posted August 13, 2007 I'm still learning all the "ins-and-outs" of TCP connections. Is TCPAccept only used on new connections, and thus why it will not equal -1 and envoke AddConn ? While 1 CheckConn () Sleep (0) $Socket = TCPAccept ($Listen) If $Socket = -1 Then ContinueLoop AddConn ($Socket) WEnd ;==>Main loop A decision is a powerful thing Link to comment Share on other sites More sharing options...
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