Too difficult for me
with my little knowledge of English
Can you help me with very basic examples?
Let us say, that I know how to create packets:
const QByteArray NetSocket::packet ( const char* type, const QByteArray& payload )
{
return MyByteArray ( )
.putInt32 ( MAGIC_ID ) // magic prefix in low-endian
.putAscii ( type, 12 ) // command padded to 12 bytes
.putInt32 ( payload.size ( ) ) // data size
.append ( MyKey32 ( payload.constData ( ), payload.size ( ) ).constData ( ), 4 ) // data checksum
.append ( payload ); // data itself
}
And the results are (several basic examples):
verack packet:
f9 be b4 d9 76 65 72 61 63 6b 00 00 00 00 00 00
00 00 00 00 5d f6 e0 e2
getaddr packet
f9 be b4 d9 67 65 74 61 64 64 72 00 00 00 00 00
00 00 00 00 5d f6 e0 e2
mempool packet
f9 be b4 d9 6d 65 6d 70 6f 6f 6c 00 00 00 00 00
00 00 00 00 5d f6 e0 e2
What will be the very basic
filterload packet which sets mask to all zeros and disables all incoming traffic?