"Frane Roje" <frane.roje(d*elete*)@st.hinet.hr> wrote in news:buk6t5$4c7$1
@ls219.htnet.hr:
I am using VB.NET 2002, and I'm having problems finding a replacement for
winsock control form VB6.0. Is there a similar control in VB.NEt and how
it's called. I actualy need to write a small chat which I have done
previously in vb6.0 in vb.NET
http://www.indyproject.org/indy.html
Here's some sample VB code for it:
Imports Indy.Sockets.IdTCPClient
Module Module1
Sub Main()
With New TIdTCPClient
.Host = "msnews.microsoft.com"
.Port = 119
.Connect()
Console.WriteLine("Connected.")
Console.WriteLine(.IOHandler.ReadLn)
.IOHandler.WriteLn("Quit")
Console.WriteLine(.IOHandler.ReadLn)
.Disconnect()
Console.WriteLine("Disconnected.")
End With
Console.WriteLine("Press Enter")
Console.ReadLine()
End Sub
End Module
--
Chad Z. Hower (a.k.a. Kudzu) -
http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at
http://www.atozedsoftware.com