https://github.com/skycoin/net
DEPRECATED: Moved to https://github.com/skycoin/skywire/tree/master/pkg/net
https://github.com/skycoin/net
Last synced: 5 months ago
JSON representation
DEPRECATED: Moved to https://github.com/skycoin/skywire/tree/master/pkg/net
- Host: GitHub
- URL: https://github.com/skycoin/net
- Owner: skycoin
- Created: 2017-06-12T12:54:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-29T12:05:36.000Z (over 3 years ago)
- Last Synced: 2024-09-22T09:21:40.680Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 4.36 MB
- Stars: 15
- Watchers: 14
- Forks: 13
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**This repo is deprecated, the code has been moved to https://github.com/skycoin/skywire/ in the `pkg/net/` folder**
# Skycoin Networking Framework
[](https://travis-ci.com/skycoin/net)
Skycoin Networking Framework is a simplified TCP and UDP networking framework.
[Skycoin Messenger](https://github.com/skycoin/net/tree/master/skycoin-messenger) is based on this infrastructure.
#### Skycoin-messenger
[Skycoin Messenger](https://github.com/skycoin/net/tree/master/skycoin-messenger) is an anonymous instant messenger. You can send messages to others by public keys on the messenger.

It also provides discovery service, which is using by skywire, cxo and bbs.
## Protocol
```
+--+--------+--------+--------------------+
msg protocol | | | | |
+-++-------++-------++---------+----------+
| | | |
v | v v
msg type | msg len msg body
1 byte v 4 bytes
msg seq
4 bytes
+-----------+--------+--------------------+
normal msg |01| seq | len | body |
+-----------+--------+--------------------+
+-----------+
ack msg |80| seq |
+-----------+
+--------------------+
ping msg |81| timestamp |
+--------------------+
+--------------------+
pong msg |82| timestamp |
+--------------------+
```