aboutsummaryrefslogtreecommitdiff
path: root/src/pdesc.h
blob: 54fad4a1a95429008ead4070e6288086c0cfcd55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PDESC_H
#define PDESC_H

#include <netinet/in.h>
#include <stdint.h>

struct psock;

enum pdesc_state { PDESC_STATE_AUTH };

struct pdesc {
    enum pdesc_state state;
    struct sockaddr_storage peer;
    uint16_t identifier;
    uint16_t sequence;
};

struct pdesc * pdesc_find_remote(struct psock *);

#endif