An open API service indexing awesome lists of open source software.

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

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

[![Build Status](https://travis-ci.com/skycoin/net.svg?branch=master)](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.

![messenger](https://blog.skycoin.net/skywire/skywire-and-viscript/messenger.png)

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 |
+--------------------+
```