Git Product home page Git Product logo

vittoriodong / instantmessaging Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 703 KB

The socket in Java is used to realize the basic functions of the online chat room. There are client and server windows. The main functions are login, registration and chat. It can support multiple users to chat online at the same time. Each user can chat in groups and send messages to a user privately.

Java 100.00%

instantmessaging's Introduction

InstantMessaging

简介

利用java中的socket实现在线聊天室的基本功能,有客户端和服务器端窗口,主要功能有登录、注册、聊天,能支持多个用户同时在线聊天,每个用户可以群聊,也对某一个用户私发消息。

文件说明

bin:存放编译生成的.class文件

src:存放源代码.java文件

RegisterInformation.txt:聊天室用户注册信息

运行环境

系统:win10

运行、编码软件:eclipse-jee-2022-03-R-win32-x86_64

编译环境:java 15.0.2

端口号:6668

第三方库依赖

Java库

  • java.util
  • java.net
  • java.io
  • java.awt
  • javax.swing

使用手册

  1. 启动服务器:在服务器端运行Server.java,启动服务器。服务器界面包括了在线用户列表、服务器消息、当前在线人数、服务器名称、服务器IP、服务器端口号等信息。
  2. 注册:运行Client.java,出现如下登录窗口,输入服务器IP,点击“注册”。输入用户名、密码、确认密码,输入完成后点击确定完成注册。
  3. 登录:返回登录界面,输入用户名、密码进行登录(注意服务器IP要正确,要和服务器端的IP一致),登录成功后进入聊天室界面。
  4. 群发功能:在下方的输入框中输入想要发送的内容,点击“发送”即可,在线用户均会看到此消息。
  5. 私发功能:双击“在线用户”列表中想要发消息的对象,在右下角“发送对象”框中选择该对象,并选中“私发”,输入消息后点击“发送”。
  6. 退出聊天室:单击右上角的“关闭”按钮即可退出聊天室。

其他信息

作者: 董哲镐

版本: 1.0.0

时间: Jun 14 2022

instantmessaging's People

Contributors

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