Jump to content

YaC-P


Snarg
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...