View previous topic :: View next topic |
Author |
Message |
lp65
Joined: 07 Sep 2020 Posts: 2
|
Posted: Mon Sep 07, 2020 12:23 pm Post subject: python3 access to minissdpd |
|
|
minissdpd is just what I need for a new project, thanks! My only problem is that the new project is in python 3 and my C isn't good enough for me to understand the example and implement it in python3. Does anyone have a python3 library (or code sample) for accessing the minissdpd server?
Thanks in advance,
LP |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1593
|
Posted: Sun Sep 20, 2020 1:38 pm Post subject: Re: python3 access to minissdpd |
|
|
lp65 wrote: | minissdpd is just what I need for a new project, thanks! My only problem is that the new project is in python 3 and my C isn't good enough for me to understand the example and implement it in python3. Does anyone have a python3 library (or code sample) for accessing the minissdpd server?
Thanks in advance,
LP |
you need to open a UNIX socket :
https://pymotw.com/2/socket/uds.html _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
lp65
Joined: 07 Sep 2020 Posts: 2
|
Posted: Wed Sep 23, 2020 7:46 am Post subject: Re: python3 access to minissdpd |
|
|
Thanks. I understand opening a unix socket and reading from it, my issue was with the communication protocol itself. For now I'm calling out to the upnpc program and parsing its output.
Thanks,
Len |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1593
|
|
Back to top |
|
|
|