miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Client vs Server

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
Mr.X



Joined: 09 Jan 2021
Posts: 4

PostPosted: Tue Jan 12, 2021 12:23 am    Post subject: Client vs Server Reply with quote

Is there any documentation for the miniupnp program?

First question: What is the difference between the client and server version of the software?
Back to top
View user's profile Send private message
Mr.X



Joined: 09 Jan 2021
Posts: 4

PostPosted: Tue Jan 12, 2021 1:21 am    Post subject: Oops Reply with quote

I mean Static vs Shared. Sorry about that!
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Jan 15, 2021 6:39 pm    Post subject: Reply with quote

static library = included in the final executable

dynamic library = shared library = linked at runtime

https://en.wikipedia.org/wiki/Library_(computing)#Shared_libraries
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Mr.X



Joined: 09 Jan 2021
Posts: 4

PostPosted: Fri Jan 15, 2021 8:41 pm    Post subject: Reply with quote

miniupnp wrote:
static library = included in the final executable

dynamic library = shared library = linked at runtime

https://en.wikipedia.org/wiki/Library_(computing)#Shared_libraries


Thank you, but how does that relate to the compiled executables? Which one should I be using?

I'm not using the library directly, just the built executables.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Jan 15, 2021 9:12 pm    Post subject: Reply with quote

Mr.X wrote:
miniupnp wrote:
static library = included in the final executable

dynamic library = shared library = linked at runtime

https://en.wikipedia.org/wiki/Library_(computing)#Shared_libraries


Thank you, but how does that relate to the compiled executables? Which one should I be using?

I'm not using the library directly, just the built executables.

Just use which one you prefer then.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Mr.X



Joined: 09 Jan 2021
Posts: 4

PostPosted: Sat Jan 16, 2021 5:00 pm    Post subject: Reply with quote

miniupnp wrote:
Mr.X wrote:
miniupnp wrote:
static library = included in the final executable

dynamic library = shared library = linked at runtime

https://en.wikipedia.org/wiki/Library_(computing)#Shared_libraries


Thank you, but how does that relate to the compiled executables? Which one should I be using?

I'm not using the library directly, just the built executables.

Just use which one you prefer then.


I assume if there are 2 executables, there is a difference between them and a reason for there to be 2 versions. Is there any difference in the operation between the two? How would I know which one to "prefer"? What scenarios should I use one over the other?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Jan 18, 2021 8:53 am    Post subject: Reply with quote

It's pretty simple :
one is statically linked with the library, the other use the shared library.

If you don't understand the difference, I'm afraid I cannot help you.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.