scottyphillips / pychonet

A simple to use library for interfacing with the ECHONETlite protocol
GNU General Public License v3.0
19 stars 17 forks source link

Is it necessary to separate sockets for sending and receiving UDP communication? #54

Closed nao-pon closed 1 year ago

nao-pon commented 1 year ago

@scottyphillips I am not familiar with network technology, so please let me ask you a question.

It's currently running on a single socket with UDP send and receive. Wouldn't this be a problem in terms of stability?

Also, looking at the communication of other EchoNet Lite devices, the transmission port seems to be random.

Does it make sense to have separate send and receive sockets and random send ports in this library?

nao-pon commented 1 year ago

I tried changing it like this:

It seems to work fine, but I'm not sure if this makes sense.