This is an example of a socket-activated per-connection service (which is usually referred to as inetd-like service). A thorough explanation can be found at http://0pointer.de/blog/projects/inetd.html.
Define a socket unit
The key point here is to specify
Accept=yes, which will make the socket accept connections (behaving like inetd) and pass
only the resulting connection socket to the service handler.