View Single Post
  #1   Spotlight this post!  
Unread 01-21-2012, 03:26 PM
duffany1 duffany1 is offline
Registered User
AKA: Brandon
FRC #0195 (The Cyberknights)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2006
Location: Southington, CT
Posts: 17
duffany1 is an unknown quantity at this point
Thumbs up 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.
Reply With Quote