Debian Codegraph @

xpa/doc/method.html

raw symbols SCIP
1 <!-- =defdoc xpamethod xpamethod n -->
2 <HTML>
3 <HEAD>
4 <TITLE>XPA Communication Methods</TITLE>
5 </HEAD>
6 <BODY>
7
8 <!-- =section xpamethod NAME -->
9 <H2><A NAME="xpamethod">XPAMethod: </A>XPA Communication Methods</H2>
10
11 <!-- =section xpamethod SYNOPSIS -->
12 <H2>Summary</H2>
13 <P>
14 XPA supports both inet and unix (local) socket communication.
15
16 <!-- =section xpamethod DESCRIPTION -->
17 <H2>Description</H2>
18 <P>
19 XPA uses sockets for communication between processes. It supports
20 three methods of socket communication: inet, localhost, and unix. In
21 general, the same method should be employed for all XPA processes in a
22 session and the global environment variable XPA_METHOD should be used
23 to set up the desired method. By default, the preferred method is
24 "inet", which is appropriate for most users. You can set up a
25 different method by typing something like:
26 <PRE>
27 setenv XPA_METHOD local # unix csh
28 XPA_METHOD=local; export XPA_METHOD # unix sh, bash, windows/cygwin
29 set XPA_METHOD=localhost # dos/windows
30 </PRE>
31 The options for XPA_METHOD are: <B>inet</B>, <B>unix</B> (or
32 <B>local</B>), and <B>localhost</B>. On Unix machines, this
33 environment setup command can be placed in your shell init file
34 (.cshrc, .profile, .bashrc, etc.) On Windows platforms, it can be
35 placed in your AUTOEXEC.BAT file (I think!).
36
37 <P>
38 By default, <B>inet</B> sockets are used by XPA. These are the standard
39 Internet sockets that are used by programs such as Netscape,
40 ftp. etc. Inet sockets utilize the IP address of the given machine and
41 a (usually random) port number to communicate between processes on the
42 same machine or between different machines on the Internet. (Note that
43 XPA has an <A HREF="./acl.html">Access Control</A> mechanism to
44 prevent unauthorized access of XPA access points by other computers on
45 the Net). For users connected to the Internet, this usually is the
46 appropriate communication method. For more information about setting
47 up XPA communication between machines, see
48 <A HREF="./inet.html">Communication Between Machines</A>.
49
50 <P>
51 In you are using XPA on a machine without an Internet connection, then
52 inet sockets are not appropriate. In fact, an XPA process often will
53 hang for many seconds while waiting for a response from the Domain
54 Name Service (DNS) when using inet sockets. Instead of inet sockets,
55 users on Unix platforms can also use <B>unix</B> sockets (also known
56 as local sockets). These sockets are based on the local file system
57 and do not make use of the DNS. They generally are considered to be
58 faster than inet sockets, but they are not implemented under
59 Windows. Use local sockets as a first resort if you are on a Unix
60 machine that is not connected to the Internet.
61
62 <P>
63 Users not connected to the Internet also can use <B>localhost</B>
64 sockets. These are also inet-type sockets but the IP address used for
65 the local machine is the <B>localhost</B> address, 0x7F000001, instead
66 of the real IP of the machine. Depending on how sockets are set up for
67 a given platform, communication with the DNS usually is not required in
68 this case (though of course, XPA cannot interact with other machines).
69 The localhost method will generally work on both Unix and Windows
70 platforms, but whether the DNS is required or not is subject to
71 individual configurations.
72
73 <P>
74 A final warning/reminder: if your XPA-enabled server hangs at startup
75 time and your XPA_METHOD is <B>inet</B>, the problem probably is
76 related to an incorrect Internet configuration. This can be confirmed
77 by using the <B>unix</B> method or (usually) the <B>localhost</B>
78 method. You can use these alternate methods if other hosts do not need
79 access to the XPA server.
80
81 <!-- =section xpamethod SEE ALSO -->
82 <!-- =text See xpa(n) for a list of XPA help pages -->
83 <!-- =stop -->
84
85 <P>
86 <A HREF="./help.html">Go to XPA Help Index</A>
87
88 <H5>Last updated: September 10, 2003</H5>
89 </BODY>
90 </HTML>