TCP/UDP Listening in C++
How do I use C++ to read data from a TCP port/socket/etc.?
To clarify, we have the LabVIEW dashboard VI sending a bunch of TCP data to port 1500. How do I access (with the C++ on the cRIO) the data that is getting sent to this port?
I have seen some stuff about "winsock" and so forth but I am getting absolutely nowhere as to how to implement it. I mean, even the include statement for "winsock2.h" isn't working ... Does anyone have any insight on this matter? I'm fairly well-versed in C++ but I'm completely new to TCP.
Last edited by duffany1 : 01-21-2012 at 11:14 PM.
|