Page 1 of 1

[solved] AppConnector connection error

Posted: 07 Apr 2009, 09:32
by alenhardt
Hi,

I'm trying to use the AppConnector protocol for my application.
I am not using the shipped tcpstream class, but QUdpSocket class of Qt 4.
I have no problems reading the internal states and control signals from the BCI2000 system but writing to the Input port of BCI2000 didnt work at all.

This is the message i get:
ConnectorInput::Preflight: Could not connect to localhost:20231

The host and port is correct. I also tried to set the socket to ShareAddress, but that didnt work as well. The error itself seems a bit weird because UDP is connectionless?!

What am I doing wrong?

Best,
Alex

Posted: 07 Apr 2009, 09:47
by alenhardt
ahh sometimes it helps just typing a message on the forum :-)

the problem was that the sending socket must not be bound to the port (even the ShareAddress flag doesnt help here).

The error message was a bit misleading. I guess the error message should be something like "Address already in use".

Sorry for spamming the forum.

AppConnector

Posted: 07 Apr 2009, 17:53
by gschalk
:-)