Results 1 to 2 of 2

Thread: someone explain what happens during this?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Location
    trinsic
    Posts
    21

    someone explain what happens during this?

    Code:
              Do
                    x = New TCPConnection(mobjListener.AcceptTcpClient)
                    AddHandler x.DataReceived, AddressOf OnDataReceived
                    Console.WriteLine("New Connection Received")
                    AddHandler x.Connected, AddressOf Connection
                    ' Add class reference to a hashtable for later reference. Make the 
                    ' requestID the unique key.
                    colClients.Add(x.requestID, x)
                Loop Until False
    what is false? why does the loop ever end?
    thanks

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I am not sure why I wrote Loop Until False...I can tell that was my code for the TCp thing...but it is just an infinite loop that will keep running until you exit the program...I think Loop Until False might be a better way thought then just Loop as it will catch the program ending.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width