12-27-2016, 05:12 AM
So here's an idea for a standardized protocol declaration packet:
A: I'm trying to connect to you, are you alive? (A ping)
B: I am alive. (A pong)
B: are you alive? (A ping)
A: I am alive. (A pong)
*Please note that for every packet beyond this point the other client responds with an acknowledgement. If no ack is received the packet is re-sent*
A: I want to use protocol X do you support it? (2 packets: protocol request, and protocol declaration)
B: Yes, I do support protocol X, I run protocol X with Y and Z specifications (1 packet: Yes I do support protocol X. N packets: specifications)
A: Okay, I'm beginning now. (1 packet)
A: I'm trying to connect to you, are you alive? (A ping)
B: I am alive. (A pong)
B: are you alive? (A ping)
A: I am alive. (A pong)
*Please note that for every packet beyond this point the other client responds with an acknowledgement. If no ack is received the packet is re-sent*
A: I want to use protocol X do you support it? (2 packets: protocol request, and protocol declaration)
B: Yes, I do support protocol X, I run protocol X with Y and Z specifications (1 packet: Yes I do support protocol X. N packets: specifications)
A: Okay, I'm beginning now. (1 packet)
This is my signature.