Establishing UDP connection

Forum for software developers to discuss BCI2000 software development
Post Reply
jameskuffuor
Posts: 1
Joined: 15 Mar 2017, 15:58

Establishing UDP connection

Post by jameskuffuor » 15 Mar 2017, 18:43

Hello,

I am trying to send BCI signals to Visual studio 2017 C++, and am using the link(https://www.bci2000.org/bbs/viewtopic.php?t=862) as a reference. When using the code:

#include <iostream>
#include "SockStream.h"

using namespace std;

int main( int argc, char** argv )
{
const char* address = "localhost:5000";
if( argc > 1 )
address = argv[ 1 ];

receiving_udpsocket socket( address );
sockstream connection( socket );
string line;
// Print each line of BCI2000 input to stdout.
while( getline( connection, line ) )
cout << line << endl;

return 0;
}

I receive an error which states, "Unable to start program... The system cannot find the file specified."
I made sure to add the "SockStream.h" file, yet I still the receive the error.


Guidance would be very much appreciated.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest