Nxt: TCP, HTTP, or both

1

In the NXT documentation it says that the Peer protocol uses TCP. But looking through the code all I see is HTTP. Does NXT use HTTP or TCP for the Peer protocol?

dbryson

Posted 2015-06-03T11:41:07.470

Reputation: 139

IMO, NXT is out of topic here.Jonas Schnelli 2015-06-03T12:09:24.107

@JonasSchnelli Community consensus has been that other crypto-currencies are on-topic, see e.g. A, B, C. [tag:NXT] being very similar to Bitcoin in design makes it a decent fit here. Also, it already has almost seventy questions here. If you wish to weigh in on the discussion about the scope of the site, feel free to create a [meta] post.

Murch 2015-06-03T12:59:03.377

Also see the first paragraph of our [tour] which states "With your help, we're working together to build a library of detailed answers to every question about Cryptocurrencies such as e.g. Bitcoin, Namecoin, Litecoin, Ripple, Zerocoin, Dogecoin, Ethereum, and NXT."Murch 2015-06-03T13:05:07.367

Answers

2

I was able to answer my own question through the Nxt dev forum.

https://nxtforum.org/general/peer-protocol-tcp-or-http/msg181766/

Adding it here for others that may have the same question:

Up to version 1.4 Nxt used HTTP for peer communication. Starting with version 1.5 they are moving to WebSocket for peer communication

dbryson

Posted 2015-06-03T11:41:07.470

Reputation: 139

Link to the forum articlemystcoin 2015-06-04T05:59:39.027

Both HTTP and WebSocket protocols are built on top of TCP.Greg Hewgill 2015-06-07T19:57:37.103

I'm well aware of how the protocol stack works. But there is a difference in how an HTTP client and a TCP client work. That was the purpose of my question - to determine what approach they were using for the clientdbryson 2015-06-10T16:32:11.977