Skip to content

attributeyielding/Network-Library-For-Unity-3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Library for Unity3D

Unity License OpenSource

A powerful and easy-to-use network library for Unity3D that provides robust TCP and UDP communication. Designed for simplicity and flexibility, this library ensures smooth networking for multiplayer games and applications.

Features

  • TCP & UDP Communication: Supports both protocols for reliable and fast data transfer.
  • Factories for Easy Setup: Quick and straightforward setup process.
  • Server & Client Wrappers: Includes auto-reconnect and auto-join functionalities.
  • Object-Oriented Approach: No need to deal with raw bytes, send and receive objects directly.
  • RSA Encryption: Optional encryption for both TCP and UDP communication.
  • Multiple Communication Methods: Use lambdas, delegates, or async operations for sending and receiving objects.
  • Quick Info Transmission: Send small pieces of information without creating objects.
  • Logging & Debugging Tools: Built-in logging for monitoring network traffic and debugging.
  • No Magic Numbers: No need for identifiers or complex configurations.
  • Fast, Reliable & Customizable: High-performance and flexible code for various use cases.
  • Clean & Understandable Code: Written in easy-to-read C# for better maintainability.
  • Open Source & Free to Use: Licensed under MIT, freely available for everyone.

Installation

  1. Clone or download the repository:
    git clone https://github.com/attributeyielding/Network-Library-For-Unity-3D.git
  2. Add the library to your Unity project.
  3. Start implementing networking using the provided API.

Usage

Setting Up a Server

TcpServer server = new TcpServer(12345);
server.Start();

Setting Up a Client

TcpClient client = new TcpClient("127.0.0.1", 12345);
client.Connect();

Sending an Object

client.Send(new MyData { message = "Hello, Server!" });

Receiving an Object

server.OnDataReceived += (sender, data) => {
    MyData received = data as MyData;
    Console.WriteLine(received.message);
};

Contribution

We welcome contributions! Feel free to submit issues or pull requests to improve the library.

License

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

Contact

For any questions or support, open an issue on the repository.

Happy coding! 🚀

About

Network library for Unity this a Network Library for unity3D , all client have Tcp/Udp Implementation TCP communication UDP communication Factories to ensure the most easy setup Server and Client Wrappers (Auto-Reconnect, Auto-Join) Object oriented. Don't worry about bits and bytes. Send and receive objects Optional RSA encryption for TCP and UDP

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages