Introduction - If you have any usage issues, please Google them yourself
Basic design ideas:
Co-editing begins, the client can only insert or delete operations. The server side receives the editing operation of three clients, and after centralized processing, a sequence of operation is generated to return to each client. After the client executes the sequence, the results of the co-editing will be displayed.
Instructions:
New project "untitled2" in Jbuilder 9.0;
Change the IP address of the file FrameTest_Client to the local address;
Run the framet etest file and start the server side;
Run the FrameTest_Client file and start the client (three clients);
Click on the menu "file" of three clients. "Connection server";
Click on the server menu "file" - > "Start service";
Users can start co-editing on the client side;
End of edit, user click on client menu "file" - > "End the client";
To close the server, click on the menu "file" - > "Exit";
Collaborative editing ends.