Clone or download
Latest commit 8a27c25 Aug 25, 2018
Permalink
Failed to load latest commit information.
client rename constant Mar 15, 2018
conn fix bug Mar 24, 2018
factory improve details Mar 12, 2018
msg Revert "remove max size limit" Mar 14, 2018
server improve fin Feb 7, 2018
skycoin-messenger keyWaitTimeout const Aug 25, 2018
util Remove AWS Aug 25, 2018
.gitignore add timeout and improve details Oct 30, 2017
.travis.yml Fix travis Aug 25, 2018
Gopkg.lock Remove AWS Aug 25, 2018
Gopkg.toml update logrus version to 1.02 Aug 4, 2017
README.md Update README.md Aug 25, 2018

README.md

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

Skycoin Networking Framework is a simplified TCP and UDP networking framework.

Skycoin Messenger is based on this infrastructure.

Skycoin-messenger

Skycoin Messenger is an anonymous instant messenger. You can send messages to others by public keys on the messenger.

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