



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















02/25/2009 CECS 327: Net-centric Computing :: Distributed Computing by M.L. Liu 1
The connection is unilateral, that is, it is enforced only on one side. The socket on the other side is free to send and receive data to and from other sockets, unless it too commits to a connection to the other socket. See Example3Sender, Example3Receiver.
Stream-mode Socket API (connection-oriented socket API)
Stream-mode Socket API In Java, the stream-mode socket API is provided with two classes:
Stream-mode Socket API program flow
Note: Accept is a blocking operation.
Connection-oriented socket API Client-Server type
accept connect request (from Socket constructor) read write message close data socket close connection socket close data socket ConnectionAcceptor ConnectionRequestor connection acceptance happened before the read at the ConnectionRequestor
http://java.sun.com/products/jsse/
TM