https://github.com/hellokitty/gladnet.asp.server
GladNet2 server library for ASP.NET Core servers.
https://github.com/hellokitty/gladnet.asp.server
Last synced: 10 months ago
JSON representation
GladNet2 server library for ASP.NET Core servers.
- Host: GitHub
- URL: https://github.com/hellokitty/gladnet.asp.server
- Owner: HelloKitty
- License: bsd-3-clause
- Created: 2016-08-03T01:56:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-06T14:10:25.000Z (about 9 years ago)
- Last Synced: 2025-01-24T06:11:19.111Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GladNet.ASP.Server
GladNet2 is a message based networking API library for for Unity3D/.Net developers. Defines an API from which other lowerlevel network libraries can be adapted to.
Come chat: [](https://gitter.im/HelloKitty/GladNet2.0?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
GladNet2 server library for ASP core servers.
## Implementations
Lidgren's: https://github.com/HelloKitty/GladNet2-Lidgren
Photon Server's: https://github.com/HelloKitty/GladNet.PhotonServer
ASP.Client (Client Only): https://github.com/HelloKitty/GladNet.ASP.Client
## Setup
To use this project you'll first need a couple of things:
- Visual Studio 2015
- Add Nuget Feed https://www.myget.org/F/hellokitty/api/v2 in VS (Options -> NuGet -> Package Sources)
## Builds
[TBA]
# How does this Work?
GladNet.ASP.Server specifically targets ASP web services. GladNet.ASP.Server is a library that contains formatters and controllers for communication with GladNet web clients overHTTP by sending requests, and receiving responses, from these services/servers.
The end-point URL for requests in all current GladNet.ASP.Server and client implementations fits the simple scheme detailed in the below section.
##### Request Scheme
```
HTTP POST to {BaseUrl}/api/{GladNet.Common.PacketPayload Name} without Payload suffix or GenericType data
```
Anyone familiar to ASP will recognize that this is a simple routing scheme for Web API controllers. (Fun Fact: Sharing a payload library between client and server allows you compile-time checked routing using nameof in C# 6)
##### What does this mean for non-ASP web services/servers?
It means only that your HTTP POST handling for these requests should fit the ASP routing scheme laid out above. So long as you respond using the [GladNet Payload API](https://github.com/HelloKitty/GladNet2/tree/master/src/GladNet.Payload) using the same [serialization](https://github.com/HelloKitty/GladNet2/tree/master/src/GladNet.Serializer) scheme this client may communicate with your webserver.
##Tests
#### Linux/Mono - Unit Tests
||Debug x86|Debug x64|Release x86|Release x64|
|:--:|:--:|:--:|:--:|:--:|:--:|
|**master**| N/A | N/A | N/A | [](https://travis-ci.org/HelloKitty/GladNet.ASP.Server) |
|**dev**| N/A | N/A | N/A | [](https://travis-ci.org/HelloKitty/GladNet.ASP.Server)|
#### Windows - Unit Tests
(Done locally)
##Licensing
This project is licensed under the MIT license.