elective-stereophonic
elective-stereophonic
Peer protocol: TCP or HTTP? singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.1 Upgrade before block 2870000 is mandatory!

Author Topic: Peer protocol: TCP or HTTP?  (Read 1074 times)

miceda

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 2
    • View Profile
Peer protocol: TCP or HTTP?
« on: June 03, 2015, 12:39:30 pm »

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?
Logged

lurker10

  • Hero Member
  • *****
  • Karma: +168/-33
  • Offline Offline
  • Posts: 1334
    • View Profile
Re: Peer protocol: TCP or HTTP?
« Reply #1 on: June 03, 2015, 06:16:22 pm »



TCP for peer connections, and browser uses HTTP for client app on top of TCP )
Logged
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +439/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: Peer protocol: TCP or HTTP?
« Reply #2 on: June 03, 2015, 07:26:25 pm »

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?

Up to version 1.4 we used Http for peer communication. Starting from version 1.5 we are using the websocket protocol, see: http://en.wikipedia.org/wiki/WebSocket
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

miceda

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 2
    • View Profile
Re: Peer protocol: TCP or HTTP?
« Reply #3 on: June 03, 2015, 07:39:36 pm »

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?

Up to version 1.4 we used Http for peer communication. Starting from version 1.5 we are using the websocket protocol, ...

Thanks.  I think using websocket is a nice approach
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly