11 extends java.rmi.server.UnicastRemoteObject
15 private String
thisMcnm, myBoardNm, myURL, myServerURL;
22 (
'L', args[1] +
" " + args[2] +
" " +
thisMcnm +
" " + args[0]);
30 myURL = Invoke.makeURL(
'C', args[0]);
31 Naming.rebind(myURL,
this);
32 Invoke.myPrint(
"WbClientImpl",
"did Naming.rebind " + myURL);
34 thisMcnm = java.net.InetAddress.getLocalHost().getHostName();
36 myServerURL = args[3];
38 myColor =
new Color(Integer.parseInt(args[4], 16));
39 Invoke.myPrint(
"WbClient waiting for",
"recvDisplayObj");
45 myLinesFrame.recvOneLine(ln);
51 wbServer.sendAllLines(
this, myBoardNm);
56 try {wbServer.addLine(ln, myBoardNm);}
57 catch (Exception e) {e.printStackTrace();}
61 Invoke.myPrint(
"WbClient waiting Ended",
"" + s);
63 try {wbServer.addClient(
this, myBoardNm);}
64 catch (Exception e) {e.printStackTrace();}
67 public void pleaseDie() throws java.rmi.RemoteException {
69 wbServer.delClient(
this, myBoardNm);
71 }
catch (Exception e) {e.printStackTrace();}
72 Invoke.myPrint(
"WbClient ", myURL +
" exits");
76 public static void main(String args[]) {
78 catch (Exception e) {e.printStackTrace();}
void sendLine(LineCoords ln)
static void main(String args[])
WbClientImpl(String[] args)
static Remote lookup(String url)
void makeMyLinesFrame(String[] args)
void updateBoard(LineCoords ln)
void recvDisplayObj(LinesFrame s)