Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
now i have a problem with TCP/IP. i want to send message to Machine using TCP/IP such as "B01334s3@@". and machine response "3@@". So i send using TCPClient such as TCPClient.BeginConnect(...,...,...). So how do i catch machine response (the value "3@@"). pls advice me if possible :sigh:
Posted

1 solution

You keep the connection open and try to read from the network stream. Follow link below for more info and example:

http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.getstream.aspx[^]

Good luck!
 
Share this answer
 

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