Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
1Activity

Table Of Contents

Restrictions
Datagrams
Packets Allow Error Correction
Abstraction
Sockets
Socket Operations
The java.net.Socket class
Constructing a Socket
Opening Sockets
Picking an IP address
Choosing a Local Port
Sending and Receiving Data
Reading Input from a Socket
For example
Writing Output to a Socket
Reading and Writing to a Socket
Socket Options
Servers
Server Sockets
Multiple Clients
Threading
Queueing
The java.net.ServerSocket
Class
Constructors
Constructing Server Sockets
Expanding the Queue
Choosing an IP address
Example
Reading Data with a
ServerSocket
Better Example
Writing Data to a Client
Interacting with a Client
Adding Threading to a Server
Adding a Thread Pool to a
Server
Thread Pools
Setting Server Socket Options
Utility Methods
The UDP Classes
java.net. DatagramPacket
UDP ports
Two DatagramPacket
For example,
With a destination:
DatagramPackets are not
immutable
java.net.DatagramSocket
Sending UDP Datagrams
Receiving UDP Datagrams
To Learn More
Questions?
0 of .
Results for:
No results containing your search query
P. 1
Java Sockets

Java Sockets

Ratings: (0)|Views: 35 |Likes:
Published by Prasanna Venkat

More info:

Published by: Prasanna Venkat on Apr 19, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

04/19/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 22 are not shown in this preview.
You're Reading a Free Preview
Pages 26 to 72 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->