You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
arnaucode 6fc605d450 added REST server to peer, implementing peersList propagation 7 years ago
..
README.md peers connection working 7 years ago
config.json added REST server to peer, implementing peersList propagation 7 years ago
connections.go added REST server to peer, implementing peersList propagation 7 years ago
errors.go implemented peers communication to send the peersList 7 years ago
log.go peers connection working 7 years ago
main.go added REST server to peer, implementing peersList propagation 7 years ago
messages.go added REST server to peer, implementing peersList propagation 7 years ago
peer peers connection working 7 years ago
peersList.go added REST server to peer, implementing peersList propagation 7 years ago
readConfig.go added REST server to peer, implementing peersList propagation 7 years ago
restServer.go added REST server to peer, implementing peersList propagation 7 years ago
restServerConfig.go added REST server to peer, implementing peersList propagation 7 years ago
restServerRoutes.go added REST server to peer, implementing peersList propagation 7 years ago
utils.go implemented peers communication to send the peersList 7 years ago

README.md

Peer

To run as a normal peer:

./peer

To run as a p2p server:

./peer server

Needs the config.json file:

{
    "ip": "127.0.0.1",
    "port": "3001",
    "serverip": "127.0.0.1",
    "serverport": "3000"
}