Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello all,

I've been looking into TcpClients and TcpListeners in VB.NET. My understanding is that the TcpClient is outbound and the TcpListener is inbound (if I'm not mistaken). This is new territory for me, and I fail to understand much of it right now. Now, assuming this is the case, how would I use a TcpClient to retrieve data from another computer running a program that utilises a TcpListener?

To be clear, using a TcpClient to RETURN information from a remote host.

Thanks,
iProgramIt.

What I have tried:

Looked through Microsoft's website but got a little bit confused.
Posted
Updated 18-Jan-17 6:51am
v2

1 solution

 
Share this answer
 
Comments
iProgramIt 18-Jan-17 12:49pm    
I'm afraid that's not what I meant, how does that show a TcpClient returning data?
[no name] 18-Jan-17 13:02pm    
It doesn't. Not sure what it is that you do not understand. TcpClients connect, send and receive data from a server. That is what it does. It doesn't return data, that is what the server does.
iProgramIt 18-Jan-17 18:03pm    
Okay.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900