raspivid -t 0 -o - | nc 172.16.26.32 5001 (my windows pc address and the port number)
Seems like you're running this as a client...
nRet = connect( hServer, (sockaddr*)&saServer, sizeof( sockaddr ) );
if( nRet == SOCKET_ERROR )
{
cout << "Connection to server failed" << endl;
}
Seems like you're running this as a client...
You have to make one side the server and the other the client, otherwise you have two clients and no servers.