Jump to content

[TCP/IP] API Proposal: 2 Sockets


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...