VariablePackage: socketToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 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-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version