[solved] AppConnector connection error

Forum for software developers to discuss BCI2000 software development
Locked
alenhardt
Posts: 11
Joined: 29 Nov 2007, 09:31

[solved] AppConnector connection error

Post by alenhardt » 07 Apr 2009, 09:32

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

alenhardt
Posts: 11
Joined: 29 Nov 2007, 09:31

Post by alenhardt » 07 Apr 2009, 09:47

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.

gschalk
Posts: 615
Joined: 28 Jan 2003, 12:37

AppConnector

Post by gschalk » 07 Apr 2009, 17:53

:-)

Locked

Who is online

Users browsing this forum: No registered users and 0 guests