mrdutchie Posted January 28, 2004 Posted January 28, 2004 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 Quote
NK2000 Posted January 28, 2004 Posted January 28, 2004 you can set your buffer big enough so you dont need a while or you can check the bytes and determine if thats all or if there is something missing.. Quote
mrdutchie Posted January 28, 2004 Author Posted January 28, 2004 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) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.