secure-addr ( -- addrspec )
Threaded servers
Prev:stop-this-server ( -- )
Next:insecure-addr ( -- addrspec )


Vocabulary
io.servers

Inputs and outputs
addrspecan addrspec


Word description
Outputs one of the port numbers on which the current threaded server accepts secure socket connections. Outputs f if the current threaded server does not accept secure socket connections.

Notes
Can only be used from the dynamic scope of a handle-client* call.

Definition
USING: io.sockets.secure random sequences ;

IN: io.servers

: secure-addr ( -- addrspec )
server-addrs [ secure? ] filter random ;