Giter Site home page Giter Site logo

rahim401 / networkbridge Goto Github PK

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

This library consists of abstract classes that add additional functionalities to your connection

License: MIT License

Kotlin 100.00%
kotlin network-programming socket-programming

networkbridge's Introduction

NetworkBridge

License GitHub Issues GitHub Stars

This library consists of abstract classes that add additional functionalities to your connection, such as:

  • HeartBeat: Ensures the connection between two bridges is operational
  • Data Handling: Provides a systematic way to process data from streams.
  • Request-Response: An effective way to send and receive requests and responses.
  • Multi-Stream Support: A method to create, manage, and reuse multiple streams of different kinds.

It offers all these functionalities in a generic, scalable, thread-safe, and understandable manner. Thus, it can be easily implemented with any connection that uses streams, such as Tcp, Ssl, Bluetooth, and more.

Project Structure:

  • bridgeCore: Package containing all the core classes.
    • Bridge: The base class handling Heartbeat, ReadingData, and Disconnection.
    • RequestBridge: Subclass of Bridge for handling Requests and Responses.
    • StreamBridge: Subclass of Bridge for handling multiple streams.
  • examples: Set of Tcp-based examples for all bridges.
    • basicBridge: A basic Master-Slave implementation of Bridge.
    • chatBridge: A CLI-based two-way chatting system built on top of RequestBridge.
    • mathBridge: A Server-Client-like, CLI-based program to evaluate Math Expressions.
    • streamBridge: A CLI-based program to create, read, or write multiple streams.

This project is written in Kotlin v1.6 and compiled for Java v11. However, you can easily customize or migrate it to any language based on your needs.

Contributing

If you would like to contribute to this project, please follow these guidelines:

  1. Fork this repository to your own account.
  2. Create a new branch for your feature or bug fix.
  3. Write your code and commit your changes.
  4. Push your changes to your forked repository.
  5. Submit a pull request to this repository.

License

The NetworkBridge is licensed under the MIT License.

networkbridge's People

Watchers

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