You can download the accompanying source code from the O’Reilly ftp site. This section describes two methods for doing so, regular FTP and FTPMAIL.
If you have an Internet connection (permanent or dialup), the easiest way to use FTP is via your web browser or favorite FTP client. To get the examples, simply point your browser to:
ftp://ftp.oreilly.com/published/oreilly/nutshell/dcom/DCOMcode.zip |
If you don’t have a web browser, you can use the command-line FTP client included with Windows NT (or Windows 95/98).
%ftp ftp.oreilly.com
Connected to ftp.oreilly.com. 220 ftp.oreilly.com FTP server (Version 6.34 Thu Oct 22 14:32:01 EDT 1992) ready. Name (ftp.oreilly.com:username
):anonymous
331 Guest login ok, send e-mail address as password. Password:username@hostname
Use your username and host here 230 Guest login ok, access restrictions apply. ftp>cd /published/oreilly/nutshell/dcom
250 CWD command successful. ftp>get README
200 PORT command successful. 150 Opening ASCII mode data connection for README (xxxx bytes). 226 Transfer complete. local: README remote: README xxxx bytes received in xxx seconds (xxx Kbytes/s) ftp>binary
200 Type set to I. ftp> get DCOMcode.zip 200 PORT command successful. 150 Opening BINARY mode data connection for DCOMcode.zip (xxxx bytes). 226 Transfer complete. local: DCOMcode.zip remote: DCOMcode.zip xxxx bytes received in xxx seconds (xxx Kbytes/s) ftp>quit
221 Goodbye. %
You should unzip the DCOMCode.zip file into an empty working directory. Once you have done this, you will find a number of subdirectories, that contain the source code for all the examples discussed in this book. The following table summarizes the contents of these subdirectories:
Chapter | Directory that contains the supporting source code |
---|---|
N/A | |
N/A | |
Basics | |
Basics | |
Infrastructure | |
OCRServer | |
OCRClient | |
Cyber | |
Security | |
Chat |
Not shown in this table are the include directory, which contains several useful, helper classes that you can use, and the Hello directory, which contains a project for a simple distributed system with a client printing the “Hello, Universe!” message to the server. The example is provided primarily to show the typical code that’s required to build a simple distributed system using COM. See Appendix D for more information. Besides these two directories, be sure to check each subdirectory for a readme.txt file, because it tells you what you need to do to get the source code to compile and run.
FTPMAIL is a mail server available to anyone who can send electronic mail to and receive electronic mail from Internet sites. Any company or service provider that allows email connections to the Internet can access FTPMAIL, as described in the following paragraph.
You send mail to ftpmail@online.oreilly.com. In the message body, give the FTP commands you want to run. The server will run anonymous FTP for you and mail the files back to you. To get a complete help file, send a message with no subject and the single word “help” in the body. The following is an example mail message that gets the examples. This command sends you a listing of the files in the selected directory and the requested example files. The listing is useful if you are interested in a later version of the examples.
Subject:reply-to username@hostname
(Message Body) Where you want files mailedopen
cd /published/oreilly/nutshell/dcom
dir
get README
mode binary uuencodeget DCOMcode.zip
quit .
A signature at the end of the message is acceptable as long as it appears after “quit.”
Get Learning DCOM now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.