Simple Question on calling a "as New ..."
Posted on 2004-10-20
ok, I have
Public WithEvents irclient as New SocketsClient
I use this like so....
ok, It allows me to connect than more than one server as it is, and all the data gets parsed correctly on dataarrival, I use this to send to the server....
irClient.SendData(irClient.StringToBytes(txtsend.Text & ControlChars.NewLine))
ok, so my question is, how do i send to a specific server? should I be creating an instance of irclient each time I want a new server? and if so, would I do that with an array? and if an array, how would I do the OnDataArrival which is ......
Private Sub onDataArrival(ByVal Data() As Byte, ByVal totBytes As Integer) Handles irClient.onDataArrival