All Manuals > LispWorks® User Guide and Reference Manual > 32 The COMM Package

async-io-state-abort-and-close Function

Summary

Aborts any I/O on an async-io-state, closes it and optionally calls a callback.

Package

comm

Signature

async-io-state-abort-and-close async-io-state &key close-callback keep-alive-p

Arguments
async-io-state
close-callback
A function designator for a function of one argument, or nil.
keep-alive-p
A generalized boolean.
Description

The function async-io-state-abort-and-close aborts any I/O on async-io-state, closes it and optionally calls close-callback.

async-io-state-abort-and-close first aborts any I/O operation that is in progress, and then closes the state (using close-async-io-state).

The value of keep-alive-p is passed to close-async-io-state.

If close-callback is non-nil, it should be a function taking one argument. It is called with the state as its argument after the state is closed.

async-io-state-abort-and-close is asynchronous. The state is known to be closed only when close-callback is called.

See close-async-io-state about accessing the state after it is closed.

See also

async-io-state-abort
close-async-io-state
25.7.2 The Async-I/O-State API
25 TCP and UDP socket communication and SSL


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26