Giter VIP home page Giter VIP logo

ihm_tcp_socket's Introduction

Employee Management System

This project implements a simple client-server application for managing employee data. The server handles requests from clients, such as querying employee information or performing searches based on different criteria. The client provides a graphical user interface (GUI) for users to interact with the server.

How it Works

Server Side

The server is implemented in Java and listens for incoming connections on port 7777. When a client connects, the server accepts the connection and handles client requests. It reads input from the client, processes it based on specified criteria, and sends back the results.

The server reads employee data from a text file located at src/main/resources/employee.txt. It supports three types of queries:

  1. Search by employee name to determine retirement status.
  2. Count employees with a specific birthdate.
  3. Count employees hired on a specific birthdate and date of employment.

Client Side

The client is also implemented in Java and provides a Swing-based GUI for users to interact with the server. It allows users to select different search options, enter input values, and retrieve results from the server.

The client sends requests to the server based on user input and displays the results in the GUI.

Screenshots

Image Description

Usage

To use this project, follow these steps:

  1. Clone the repository to your local machine:
   git clone https://github.com/decodevm/ihm_tcp_socket.git
  1. Navigate to the tcp-socket/src/main/java/com/decodev/additional directory:
   cd ihm_tcp_socket/src/main/java/com/decodev/additional
  1. Compile the Java files:
   javac EmployeeClient.java EmployeeServer.java
  1. Run the server for employee system:
   java EmployeeServer
  1. Connect your client application to the server using TCP socket programming:
   java EmployeeClient

Contributors

This project was developed by:

ihm_tcp_socket's People

Contributors

decodevm 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.