Jump to content

Recommended Posts

Geschrieben

hello!

thank you for providing the TCP/IP spec!

i'd really prefer to have the brickd provide 2 sockets

 

- one for "calls" (request/response)

- one for "events/callbacks" (response)

 

this would make logic much easier, when dealing with a single threaded environment (using blocking ops for "calls", and async io for "callbacks")!

regards

Geschrieben

I believe the brickd keeps track of the connections requesting events. If so you could simply open two connections and register your callbacks only on one of the connections. Then the events/callbacks should only occur on that connection.

Geschrieben

We can't do this in general because the WIFI Extension won't be able to do this efficiently (utilizing two sockets).

 

It would be possible to make this behavior configurable for brickd, i suppose.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...