





































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!






































import import java.io.;java.net.;
public public class static void EchoClient main(String[] args){ throws IOException {
Socket PrintWriter echoSocket out = = null;null; BufferedReader in = null; try { echoSocket = new Socket("taranis", 7); out in == new new BufferedReader(new PrintWriter(echoSocket.getOutputStream(), InputStreamReader( true); } catch (UnknownHostException e)^ echoSocket.getInputStream())); { System.err.println("Don't System.exit(1); know about host: taranis."); } catch System.err.println("Couldn't (IOException e) { get I/O for " System.exit(1);^ +^ "the^ connection^ to: taranis."); }
Java Remote Method Invocation
Java Client Java Server
Client Stub Server Skeleton
Client Method (^) Called Method
Network transport Network Transport
arguments results
Network
Not needed In Java 2