Publishing Director Joanne TracyPublisher Denise E. M. PenroseAcquisitions Editor Rick AdamsPublishing Services Manager George MorrisonSenior Production Editor Dawnmarie SimpsonAssistant Editor Michele CroninProduction Assistant Lianne HongCover Design Alisa AndreolaCover Images istockComposition diacriTechTechnical Illustration diacriTechCopyeditor JC PublishingProofreader Janet CockerIndexer Joan GreenInterior printer Sheridan Books, IncCover printer Phoenix Color, Inc
Morgan Kaufmann Publishers is an imprint of Elsevier.30 Corporate Drive, Suite 400, Burlington, MA 01803, USA
This book is printed on acid-free paper.
© 2008 by Elsevier Inc. All rights reserved. Reproduced with permission from TCP/IP.
Designations used by companies to distinguish their products are often claimed as trademarks or registered trademarks. In all instances in which Morgan Kaufmann Publishers is aware of a claim, the product names appear in initial capital or all capital letters. Readers, however, should contact the appropriate companies for more complete information regarding trademarks and registration.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means–electronic, mechanical, photocopying, scanning, or otherwise–without prior written permission of the publisher.
Permissions may be sought directly from Elsevier’s Science & Technology Rights Department in Oxford, UK: phone: (+44) 1865 843830, fax: (+44) 1865 853333, E-mail: [email protected]. You may also complete your request online via the Elsevier homepage (http://elsevier.com), by selecting “Support & Contact” then “Copyright and Permission” and then “Obtaining Permissions.”
Library of Congress Cataloging-in-Publication DataCalvert, Kenneth L. TCP/IP sockets in Java : practical guide for programmers / Kenneth L. Calvert, Michael J.Donahoo. – 2nd ed. p. cm. Includes bibliographical references and index. ISBN 978-0-12-374255-1 (pbk. : alk. paper) 1. Internet programming. 2. TCP/IP (Computer networkprotocol) 3. Java (Computer program language) I. Donahoo, Michael J. II. Title. QA76.625.C35 2008 005.13′3–dc22 2007039444
For information on all Morgan Kaufmann publications, visit our Web site at www.mkp.com or www.books.elsevier.com
Printed in the United States08 09 10 11 12 5 4 3 2 1