Page 1 of 1

Establishing UDP connection

Posted: 15 Mar 2017, 18:43
by jameskuffuor

I am trying to send BCI signals to Visual studio 2017 C++, and am using the link( 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.