aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba/socket/protocols.h
blob: ec6896ab9b87c876a83a8b7b2c847c3718c04cc9 (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
#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,
            PONG,
            PONG_IB,

            KILL,

            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,
        };
    }

}