Lazarus

Programming => Networking and Web Programming => Topic started by: Xor-el on January 10, 2019, 08:02:11 am

Title: CrossPlatform uPnP solutions for FreePascal
Post by: Xor-el on January 10, 2019, 08:02:11 am
As the title implies, any suggestions please.
Title: Re: CrossPlatform uPnP solutions for FreePascal
Post by: sash on January 10, 2019, 09:28:29 am
Solution to what exactly?
Title: Re: CrossPlatform uPnP solutions for FreePascal
Post by: Xor-el on January 10, 2019, 09:36:51 am
Solution to what exactly?

Something like a library or unit that implement uPnP in a crossplatform way for FPC.
Title: Re: CrossPlatform uPnP solutions for FreePascal
Post by: Thaddy on January 10, 2019, 09:56:35 am
uPnP is implemented for most platforms that support it: uPnP relies on code that is on the device, the hardware, so platforms like Windows and Linux will have no trouble handling it.
I am not quite sure what you mean. Do you mean to write uPnP code for a certain device? It is designed to be X-platform. And yes, that can be done with fpc-embedded if it has a supported chip.
In effect it is a protocol, not real hardware. https://en.wikipedia.org/wiki/Universal_Plug_and_Play which is actually pretty good.
Title: Re: CrossPlatform uPnP solutions for FreePascal
Post by: Xor-el on January 10, 2019, 11:00:34 am
uPnP is implemented for most platforms that support it: uPnP relies on code that is on the device, the hardware, so platforms like Windows and Linux will have no trouble handling it.
I am not quite sure what you mean. Do you mean to write uPnP code for a certain device? It is designed to be X-platform. And yes, that can be done with fpc-embedded if it has a supported chip.
In effect it is a protocol, not real hardware. https://en.wikipedia.org/wiki/Universal_Plug_and_Play which is actually pretty good.

Thanks for replying.
I have been tasked with the job of implementing uPnP support for an existing software which is meant to run on at least windows, Linux and Mac.
Title: Re: CrossPlatform uPnP solutions for FreePascal
Post by: DonAlfredo on January 10, 2019, 02:02:52 pm
I have some Windows UPnP-code, but this is certainly not cross-platform !
Title: Re: CrossPlatform uPnP solutions for FreePascal
Post by: Xor-el on January 10, 2019, 02:40:59 pm
I have some Windows UPnP-code, but this is certainly not cross-platform !

Would be nice if you can share it please, this would be a step forward at least.
Thanks.
Title: Re: CrossPlatform uPnP solutions for FreePascal
Post by: DonAlfredo on January 11, 2019, 08:00:00 am
Last time I looked at this code was in 2011.
And it was written for Delphi.
But you will get the idea I hope !
Title: Re: CrossPlatform uPnP solutions for FreePascal
Post by: Xor-el on January 11, 2019, 08:55:15 am
Last time I looked at this code was in 2011.
And it was written for Delphi.
But you will get the idea I hope !

Thanks a lot.
Will take a look at it.
TinyPortal © 2005-2018