http://www.codeproje.../TCPIPChat.aspx
My problem is its in c#. I have used this site to change it from c# to vb.net
http://www.developer...t/csharp-to-vb/
I havnt plugged in any code except for the server part.
IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any, 8000); Socket newsock = Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); newsock.Bind(localEndPoint); newsock.Listen(10); Socket client = newsock.Accept();
That is teh c# for server.
It went to
Dim ipep As New IPEndPoint(Ipaddress.Parse("127.0.0.1"), 8000)
Dim server As New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
server.Connect(ipep)
I put into VS 2008 and had some errors. i fixed them by importing
Imports System.Net.Sockets
Imports System.Net
I still have one error which i don't know how to fix.
Dim newsock As Socket = Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
The error is on the socket that is after =
'Socket' is a type and can not be used an an expression.
I was how to go about and fixing this. As im sure ill run into this type of error more while converting the client side of the application.

New Topic/Question
Reply



MultiQuote




|