I need socket connectivity with ASP .NET (the same functionality as the
Winsock control in VB6)
So far, I was able to connect (I think) using this code:
Dim tcpConnection As New System.Net.Sockets.TcpClient()
Try
tcpConnection.Connect(txtIP.Text, CInt(txtPort.Text))
Response.Write("Connected")
Catch ex As System.Net.Sockets.SocketException
Response.Write(ex.ToString)
End Try
But the problem I am having is that I cannot find the way to send and
receive data. In VB6 I used the method "SendData" and the
event "DataArrival" to send and receive data respectively. Something that
I couldn't yet find/do in ASP .NET
Any help is going to be greatly appreciated.
Thanks, Marcelo.