GithubHelp home page GithubHelp logo

yiming95 / dictionary Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.05 MB

A university distributed system project: uses java to build a multithreaded dictionary server, and it can interacts with user by client GUI java swing.

Java 100.00%

dictionary's Introduction

Java multithreaded dictionary project

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Introduction

The breif introduction of the project.

It contains 6 java files and they implement a worker-pool multi-threading architecture
with TCP socket Dictionary Server. The port number for socket to connection is default set 
as 4444. The dictionary data uses JSON format to achieve efficiency.

IP address is default set as localhost. There is no need for user to enter port number 
or IP address to use it.

The default dictionary contains three words : "java","python","c" and
"JsonDictionary.java" creates the dictionary. It uses json-simple-1.1.1.jar to help
build JSON object.

To run it

  • By console: first run "DictionaryServer.java" then run "Client.java" To query a word's definition: query,java To add a new word: add,html,a language that can build website To remove a word: remove,html

  • By GUI: first run "ServerGUI.java" then run "ClientGUI.java" notice: by add a new word, input "html,a language..." in the box then click the "add" button To query or remove a word, just enter a word firstly in the input box, then click the button "query" or "remove" and the info will be shown in the below information box.

  • By jar: It has two jar files- "DictionaryServer.jar" and "DictionaryClient.jar" just double clicked the "DictionaryServer.jar" first and then the "DictionaryClient.jar". No need to enter port number,IP etc.

Authors

  • Yiming Zhang

License

This project is licensed under the MIT License - see the LICENSE.md file for details

dictionary's People

Contributors

yiming95 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.