please help me!!

longdexin

New member
Joined
Jun 27, 2005
Messages
2
Programming Experience
Beginner
Help with Sockets Code

hi,

i would like to know what does the code below mean.

Dim myEndPoint As System.Net.EndPoint
Dim mySocket As System.Net.Sockets.Socket

PublicSub connect()

myEndPoint =
New System.Net.IPEndPoint _
(System.Net.IPAddress.Parse(address(0).ToString), System.Int32.Parse(2222))
mySocket = New System.Net.Sockets.Socket( _
System.Net.Sockets.AddressFamily.InterNetwork, _
System.Net.Sockets.SocketType.Stream, _
System.Net.Sockets.ProtocolType.Tcp)
mySocket.Connect(myEndPoint)

End Sub
can any one help? Thanks!!
 
Last edited by a moderator:
Back
Top