This is probably my first answer on Stackoverflow :)
First, set inetdCompatibility to Wait to false. This will force launchd to accept the socket.
<key>inetdCompatibility</key>
<dict>
<key>Instances</key>
<integer>42</integer>
<key>Wait</key>
<false/>
</dict>
, launchd . STDIN_FILENO. : ( sshd )
int sock_in;
int sock_out;
sock_in = sock_out = dup(STDIN_FILENO);
NSLog(@"socket descriptor: %d", sock_in);
sock_in . , accept.
, plist, . , . launchdd 18411 TCP- IPv4.
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockServiceName</key>
<string>18411</string>
<key>SockType</key>
<string>stream</string>
<key>SockFamily</key>
<string>IPv4</string>
</dict>
</dict>