Macro | Package: net.rpc | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## with-remote-port

Arguments: (port-var &key key close final) &rest body

The purpose of this macro is to establish a dynamic context where a default rpc port is available. port-var is bound to `*rpc-port*`. The value(s) returned are the value(s) of the body treated as a let body.

Before the body is evaluated, the port is examined, and if open, it is used as-is. If not open, it is opened or re-opened as appropriate. If the port is not open and cannot be opened, an error is signaled.

If the close keyword value is non-`nil`, the port is closed upon exit from the body. If the final keyword value is non-`nil`, the port is closed permanently.

See also rpc.htm for general information on the Remote Procedure Call utility in Allegro CL.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version