文件名称:Fundamental Networking in Java
文件大小:1.59MB
文件格式:PDF
更新时间:2011-11-19 05:19:20
Java Networking
, - a long-standing gap in the documentation and literature of the Java™ programming language and platform, by providing fundamental and in-depth coverage of # and networking from the point of view of the Java API, and by discussing advanced networking programming techniques.1 The new I/O and networking features introduced in " 1.4 provide further justification for the appearance of this text. Much of the information in this book is either absent from or incorrectly specified in the Java documentation and books by other hands, as I have noted throughout. In writing this book, I have drawn on nearly twenty years’ experience in network programming, over a great variety of protocols, APIs, and languages, on a number of platforms (many now extinct), and on networks ranging in size from an Ethernet a few inches in length, to a corporate between cities thousands of miles apart, to the immense geographic spread of the Internet. This book covers both ‘traditional’ Java stream-based I/O and so-called ‘new I/O’ based on buffers and channels, supporting non-blocking I/O and multiplexing, for both ‘plain’ and secure sockets, specfically including non-blocking # and % . Server and client architectures, using both blocking and non-blocking I/O schemes, are discussed and analysed from the point of view of scalability and with a particular emphasis on performance analysis. An extensive list of TCP/IP platform dependencies, not documented in Java, is provided, along with a handy reference to the various states a TCP/IP port can assume.