Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

Well, If I do a LIST command for all the newsgroups,

I guess I can do a Bytes(9999999) as byte I guess

But then I still can't figure out how to continue when it stops.

I know it ends with a '.'

Then need to figure out how to break the whole thing into 55000 lines. (amount of newsgroups)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...