|
-
Jan 27th, 2004, 11:09 PM
#1
Thread Starter
Member
How to stop when I don't receive any data anymore?
I am stuck with the following
I am asking for the LIST command on the newsserver
so I will receive all the newsgroups.
I am doing this
Do
bytes = mysocket.Receive(bb, bb.Length, 0)
ListBox1.Items.Add(Encoding.ASCII.GetString(bb))
Loop While bytes > 0
but at the end it lockes up, cause it's getting stuck in that loop
how can I tell it to continue with something else as soon as I don't receive data anymore?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|