VariablePackage: socketToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

*print-hostname-in-stream*

This variable controls whether the socket printing code converts the ip address of a socket into a hostname. This is usually what you want, however this can be a slow process (taking up to a minute to accomplish) and may not be doable when a machine is not connected o the net. The default value for this variable is t, meaning the conversion is done.

The default method for printing socket stream object includes printing the source and destination hostnames of the socket. The hostnames are found from the IP address stored in the socket object by first looking in Allegro's hostname lookup cache and if that does not yield results, using the lookup method specified in the machine's network configuration. The typical lookup method is DNS (Domain Name System). A DNS lookup usually completes quickly but can take up to a minute to succeed or fail, if there is network congestion. Sometimes machines with no network configuration are misconfigured to use DNS even though that can't possibly work without a network connection.

To prevent Allegro from attempting hostname lookup you can set the value of this variable to nil by evaluating a form like:

(setq socket::*print-hostname-in-stream* nil)

See socket.htm for general information on sockets 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.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version