aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba/socket/protocols.h
blob: e364c3368a2b9ab780117d58a1290c2c3958b1d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once

namespace NNetlibaSocket {
    namespace NNetliba_v12 {
        const ui8 CMD_POS = 11;
        enum EUdpCmd {
            CMD_BEGIN = 1,

            DATA = CMD_BEGIN,
            DATA_SMALL,   // no jumbo-packets
            DO_NOT_USE_1, //just reserved
            DO_NOT_USE_2, //just reserved

            CANCEL_TRANSFER,

            ACK,
            ACK_COMPLETE,
            ACK_CANCELED,
            ACK_RESEND_NOSHMEM,

            PING,  // 10
            PONG,  // 11
            PONG_IB,

            KILL,

            XS_PING, // 14
            XS_PONG, // 15

            CMD_END,
        };
    }

    namespace NNetliba {
        const ui8 CMD_POS = 8;
        enum EUdpCmd {
            DATA,
            ACK,
            ACK_COMPLETE,
            ACK_RESEND,
            DATA_SMALL, // no jumbo-packets
            PING,
            PONG,
            DATA_SHMEM,
            DATA_SMALL_SHMEM,
            KILL,
            ACK_RESEND_NOSHMEM,
        };
    }

}