Skip to content

Commit 2fc0f0a

Browse files
Update README.md
1 parent 7e70d55 commit 2fc0f0a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ Basically you have a Relay server somewhere in your network, which can act as a
257257

258258
## Relay server
259259
Server is completely passive, allowing other peers to discover and send messages to each other. Additionally NAT traversal methods such as UDP holepunching provided to allow direct communication via Internet or LAN (UDP only so far, but we have reliable udp).
260+
261+
```Relay Server Is Serialization Agnostic``` which means any serialized network Peers, (Protobuff, MessagePack etc) can use the same relay server.
262+
260263
<br/> To use the Relay server, simply declere your server as:
261264
``` c#
262265
var scert = new X509Certificate2("server.pfx", "greenpass");
@@ -333,6 +336,9 @@ Additionally keeping same message system to send 1-1 messages among peers.
333336

334337
You can join multiple rooms
335338

339+
```Room Server Is Serialization Agnostic``` which means any serialized network Peers, (Protobuf, MessagePack etc) can use the same Room server.
340+
341+
336342
Decleration of Server and client
337343
``` c#
338344
var server = new SecureProtoRoomServer(20010, scert);
@@ -360,6 +366,10 @@ Additionally to the standard 1-1 message callback we have room message callbacks
360366
client1.OnUdpMessageReceived += (message) => ..
361367

362368
```
369+
## P2P Remarks
370+
- Relay and lobby servers only uses MessageEnvelope and staticly serialized internal message types to communicate and provide functionalities, Therefore any Room client or Relay client, independent of what type of serialization they use, can acces and use all functionalities simultaneously.
371+
- Peers with different serialization protocols can talk with each other. They can send MessageEnvelope and Raw bytes without a problem. Understanding which protocol peer uses should be defined in application which is up to the user. Hence their serialized inner messages can be deserialized from envelope payload bytes accordingly.
372+
363373
# Cyber Security
364374
All secure TCP variants are implementing standard SSL socket with TLS authentication/validation.
365375

0 commit comments

Comments
 (0)