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.
 
 
 
 
 
 

58 lines
4.0 KiB

=== ETCP Two-Instance Connection Test ===
Creating server instance...
[CONFIG DEBUG] Opening config file: test_server.conf
[CONFIG DEBUG] Successfully opened config file
[CONFIG DEBUG] Checking config - priv_key='67b705a92b41bcaae105af2d6a17743faa7b26ccebba8b3b9b0af05e9cd1d5fb' (len=64), pub_key='1c55e4ccae7c4470707759086738b10681bf88b81f198cc2ab54a647d1556e17c65e6b1833e0c771e5a39382c03067c388915a4c732191bc130480f20f8e00b9' (len=128), node_id=1229782938247303441
[CONFIG DEBUG] Validation results - need_priv_key=0, need_pub_key=0, need_node_id=0
[CONFIG DEBUG] Opening config file: test_server.conf
[CONFIG DEBUG] Successfully opened config file
INFO: sc_init_local_keys: public_key len=128, private_key len=64
INFO: sc_validate_key: uECC_valid_public_key returned 0
INFO: sc_init_local_keys: keys initialized successfully
[ETCP] Successfully bound socket to local address, family=2
INFO: Registered ETCP socket with uasync (fd=5)
[ETCP] Socket 0x5b8429757280 (fd=5) registered and active
Initialized server test on 127.0.0.1:9001 (links: 0)
Initialized 0 connections
Server instance ready (node_id=1111111111111111)
Creating client instance...
[CONFIG DEBUG] Opening config file: test_client.conf
[CONFIG DEBUG] Successfully opened config file
[CONFIG DEBUG] Checking config - priv_key='4813d31d28b7e9829247f488c6be7672f2bdf61b2508333128e386d1759afed2' (len=64), pub_key='c594f33c91f3a2222795c2c110c527bf214ad1009197ce14556cb13df3c461b3c373bed8f205a8dd1fc0c364f90bf471d7c6f5db49564c33e4235d268569ac71' (len=128), node_id=2459565876494606882
[CONFIG DEBUG] Validation results - need_priv_key=0, need_pub_key=0, need_node_id=0
[CONFIG DEBUG] Opening config file: test_client.conf
[CONFIG DEBUG] Successfully opened config file
INFO: sc_init_local_keys: public_key len=128, private_key len=64
INFO: sc_validate_key: uECC_valid_public_key returned 0
INFO: sc_init_local_keys: keys initialized successfully
[ETCP] Successfully bound socket to local address, family=2
INFO: Registered ETCP socket with uasync (fd=8)
[ETCP] Socket 0x5b84297585c0 (fd=8) registered and active
Initialized server test on 127.0.0.1:9002 (links: 0)
INFO: init_connections: setting peer public key for client test_client
INFO: sc_validate_key: uECC_valid_public_key returned 0
INFO: init_connections: successfully set peer public key for client test_client
INFO: Sending INIT request to link, node_id=2459565876494606882, retry=0
[ETCP] INIT sending to 127.0.0.1:9001, link=0x5b84297589d0, conn_fd=8
[ETCP DUMP] ECTP_ENCRYPT_SEND: len=77; dump: 02 22 22 22 22 22 22 22 22 05 dc 00 1e c5 94 f3 3c 91 f3 a2 22 27 95 c2 c1 10 c5 27 bf 21 4a d1 00 91 97 ce 14 55 6c b1 3d f3 c4 61 b3 c3 73 be d8 f2 05 a8 dd 1f c0 c3 64 f9 0b f4 71 d7 c6 f5 db 49 56 4c 33 e4 23 5d 26 85 69 ac 71
[ETCP] Sending packet to 127.0.0.1:9001, size=91
Added client test_client with 1 links
Initialized 1 connections
Client instance ready (node_id=2222222222222222)
Starting connection monitoring...
Running event loop...
Waiting 2 seconds for server initialization...
[ETCP DUMP] RECV in:: len=91; dump: 3b 80 7d cf fa bd 7d e1 eb a6 01 cf 58 bf 72 7a 85 53 71 57 fa b0 55 87 5f f8 b2 c5 94 f3 3c 91 f3 a2 22 27 95 c2 c1 10 c5 27 bf 21 4a d1 00 91 97 ce 14 55 6c b1 3d f3 c4 61 b3 c3 73 be d8 f2 05 a8 dd 1f c0 c3 64 f9 0b f4 71 d7 c6 f5 db 49 56 4c 33 e4 23 5d 26 85 69 ac 71
c5 94 f3 3c 91 f3 a2 22 27 95 c2 c1 10 c5 27 bf 21 4a d1 00 91 97 ce 14 55 6c b1 3d f3 c4 61 b3 c3 73 be d8 f2 05 a8 dd 1f c0 c3 64 f9 0b f4 71 d7 c6 f5 db 49 56 4c 33 e4 23 5d 26 85 69 ac 71 INFO: sc_validate_key: uECC_valid_public_key returned 0
[ETCP DEBUG] Send INIT RESPONSE
[ETCP DUMP] ECTP_ENCRYPT_SEND: len=11; dump: 03 11 11 11 11 11 11 11 11 00 00
[ETCP] Sending packet to 127.0.0.1:9002, size=25
[ETCP DUMP] RECV in:: len=25; dump: 33 80 7c fc c9 8e 4e d2 d8 95 32 ca 84 21 9f 71 d7 f9 31 cf a0 68 84 f8 74
[ETCP DUMP] RECV decrypted:: len=11; dump: 03 11 11 11 11 11 11 11 11 00 00
[ETCP] code=3
INFO: Received INIT_RESPONSE from server_node_id=1229782938247303441, mtu=0
[ETCP] Link initialized successfully! Server node_id=1229782938247303441, m