Tcplistener and TcpClient
-
I would like to check if it is true that both the listener and the client must be in the same file but different class to work? I try separating them as 2 just as i wan to put each in 2 separate CPU and it seen to have some error on the client side. i Dim client as new tcpclient they underline it as error.
-
I would like to check if it is true that both the listener and the client must be in the same file but different class to work? I try separating them as 2 just as i wan to put each in 2 separate CPU and it seen to have some error on the client side. i Dim client as new tcpclient they underline it as error.
No, you can have them both in the same file, same class, different files, different classes, partial classes, ... whatever. They'll still work.
Subjugate wrote:
i Dim client as new tcpclient they underline it as error.
Probably because you're missing Imports or you haven't specified the entire fully qualified name of your TcpClient class.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
No, you can have them both in the same file, same class, different files, different classes, partial classes, ... whatever. They'll still work.
Subjugate wrote:
i Dim client as new tcpclient they underline it as error.
Probably because you're missing Imports or you haven't specified the entire fully qualified name of your TcpClient class.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008So i would like to ask if u have any example of tcplistener and tcpclient both as stand alone application to pass me? As i can only find file that combine them together online. I need to test them out on 2 seperate pc before i can progress in my project. Thanks for the help.