2.16 <GDtlsServerConnection>

Interface: <GDtlsServerConnection>

<GDtlsServerConnection> is the server-side subclass of <GDtlsConnection>, representing a server-side DTLS connection.

Properties

Property: dtls-server-connection:authentication-mode self

The <GTlsAuthenticationMode> for the server. This can be changed before calling dtls-connection:handshake? if you want to rehandshake with a different mode from the initial handshake.

Its value is a <GTlsAuthenticationMode> (or, to set it, one of its symbols).

Set it with (set! (dtls-server-connection:authentication-mode self) value).

Procedures

Procedure: dtls-server-connection:new base-socket [certificate] ⇒ %return

Creates a new <GDtlsServerConnection> wrapping base-socket.

base-socket

Passed: a <GDatagramBased>.

the <GDatagramBased> to wrap

certificate

Passed, or left out: a <GTlsCertificate>, or #f.

the default server certificate, or #f

%return

Returned: a <GDtlsServerConnection>.

the new <GDtlsServerConnection>, or #f on error