Sharing a Single TCP/IP Daemon Among Multiple, Unrelated Functions
Original Publication Date: 2003-Mar-27
Included in the Prior Art Database: 2003-Mar-27
Disclosed is a software design which allows multiple, unrelated functions within a software system to share a single daemon (server socket) for accepting incoming socket requests. Local functions which need to accept incoming socket requests register with the single daemon and provide a unique identifier. When an incoming socket request is received by the daemon, the daemon first reads the unique identifier from the socket. The daemon matches the identifier from the socket with the registered functions and passes the socket to the local function with the matching identifier.