The unified equivalent of a Windows DLL is a shared library, for example. libfoobar.so.
Regarding how to distribute your code to a third party in binary form, your options are:
- static library:
libfoobar.a - shared / dynamic library:
libfoobar.so - executable file
The first two cases are practically the same. Nowadays, people prefer dynamic libraries because library code can be shared by several executable files, which reduces the size of executable files and the amount of memory.
In both cases, the user of your code will have to write their own code to use your API, and they need to compile their code with your library.
, . - , . , , . UDP TCP , - RPC, SunRPC, SOAP, HTTP, REST, .