Git Product home page Git Product logo

linuxchat's Introduction

LinuxChat

一个用Java编写的Socket通信小工具


Function

  • 被动/主动发起点对点链接
  • 局域网自动发现
  • 文字聊天
  • 文件/文件夹发送
  • 聊天记录保存/删除
  • 聊天记录查找

Usage

运行环境

JDK1.8及以上

开始

程序初次启动时会在程序目录创建LinuxChat_Data文件夹以及文件夹内的配置文件config.ini
配置文件config.ini可以修改程序设置

建立连接

程序启动时会使用配置接收端口(默认16059)等待连接,此时可以输入地址主动连接
输入格式:[地址]:[端口号(可选)],如192.168.1.1 192.168.1.1:8080
如果配置里启用了网络发现功能,则可自动发现并显示局域网中的其他客户端
注:如果不使用端口号,将向配置接收端口(默认16059)进行连接

指令列表

  • ##H:获取帮助手册

  • ##Q:断开所有连接并退出程序

  • ##P:查看当前配置的网络信息

  • ##R:查看与本机连接过的用户地址

  • ##D:删除用户的所有记录和文件,需要后接用户地址,如 ##D127.0.0.1

  • ##S:按内容搜索与对方的聊天记录,仅在建立连接后可用,需要后接查找内容
    • 使用示例:##S你好 ##S再见

  • ##T:按时间搜索与对方的聊天记录,仅在建立连接后可用,需要后接日期(年/月/日)
    • 使用示例:##T2021/12/25 ##T2021/5/9

  • ##F:向对方发送文件或文件夹,仅在建立连接后可用,需要后接路径"
    • 使用示例:##F图片.jpg ##F文件夹/图片.jpg ##F文件夹

    • 注:文件接收目录为LinuxChat_Data文件夹,以对方地址命名的文件夹下,文件夹会保存为zip压缩包格式"


linuxchat's People

Contributors

croakfang avatar

Stargazers

盛玄 avatar

Watchers

 avatar

Forkers

qsx9527

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.