For each ?

CarcaBot

Well-known member
Joined
Apr 23, 2007
Messages
47
Location
Romania
Programming Experience
Beginner
I have a socket ( irc client ) and i want open multiple connections
i made an textbox where i declare how many sockets to connect and one for delay
how i can connect each socket with delay ?
i can't make to work :|

thanks
 
well, i solved this problem but now i have another ;)

i have 2 irc connections
1 listbox where are stored the name of connections ( eg. bot1 , bot2 )
i have a button

I want, When i push on button to PRIVMSG me each item from listbox
i used this code
VB.NET:
  Dim obj As String
                For Each obj In ListBox1.Items
                    If Not tcp Is Nothing Then
                        sw.WriteLine("PRIVMSG " & "#channel" & " :" & "Message")
                        display(TextBox18.Text)
                        sw.Flush()
                    End If
                Next obj

why didn't work ?
 
i didn't get any error ... just don't work, when i press on button (PRIVMSG) and 2 bots are connected, First bot connected msg me twice. and 2 no, after first bot msg me , second bot get connection timed out because don't answer to the ping = pong.
 

Latest posts

Back
Top