PSecEchoServer is a simple secure UDP PTP echo server. It uses PSec and PKE protocols to establish the communication with a client and protect traffic. It occupies the UDP port 52103 for the PSec communication and 52102 for the PKE communication. It implements the PTP echo service and three functions from the PTP support service: Len, Seed, Session.
The following credentials must be used to gain access to the server:
ClientID: test_client ClientKey: Keyed SHA256 {1,2,3,4,5} ServerKey: Keyed SHA256 {6,7,8,9,0}
There are no command line arguments.
CCore-PSecEchoServer.exe
--- PSecEchoServer 1.00 --- --- Copyright (c) 2015 Sergey Strukov. All rights reserved. --- PSecEcho> stat --- PTP ------------------------------------------------------------------------ --- UDP ------------------------------------------------------------------------ Tick = 135 Extra timeout = 133 PSecEcho>
The following commands are supported: help, exit, stat, clear, psecstat, close.
help prints the list of commands.
exit prints the statistic and exit the server.
clear clears the PTP and UDP statistic counters.
stat prints the PTP and UDP statistic counters.
psecstat without arguments prints the PSec statistic counters for all established connections. But you may specify an address to print the PSec statistic of the single connection.
PSecEcho> psecstat --- 127.0.0.1:52101 ------------------------------------------------------------ PSec Rx = 6 PSec Rx Done = 6 PSec Tx = 3 PSec Tx Done = 3 PSecEcho> psecstat 127.0.0.1:52300 no such connection PSecEcho> psecstat 127.0.0.1:52101 PSec Rx = 7 PSec Rx Done = 7 PSec Tx = 4 PSec Tx Done = 4 PSec Ping = 1
close without arguments closes all connections. With the given argument it closes a single connection.
PSecEcho> close !lost connection 127.0.0.1:52101 1 connections are closed
PSecEcho> close 127.0.0.1:52101 !lost connection 127.0.0.1:52101 connecton is closed