remote-port-owner

Name

remote-port-owner -- Use ident protocol to find the remote owner of a socket.

Type: function

Synopsis

remote-port-owner( fd, type info);

Arguments

fd

An instance of <fixnum>, the file descriptor for the local socket.

Return Values

type

An instance of <string>

info

An instance of <string>

Description

This procedure contacts the ident server on the machine which is the peer of the given socket. If a recognizable ident response is returned, the response type and additional info are returned as two values.

(define svc (make-service (inet-server 5050)))

(remote-port-owner (get-next-client svc)) "USERID" "UNIX : dkolbly"

If the peer host is not running an ident server, this procedure signals an error (an <os-error>, "Connection refused").