receiver.h 489 Bytes
Newer Older
1
2
3
4
5
#ifndef PRRT_RECEIVER_H
#define PRRT_RECEIVER_H

#include <stdbool.h>
#include <stdint.h>
6
7
8
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
9
#include "channelStateInformation.h"
10
11
12
13

typedef struct prrtReceiver {
    const char* host_name;
    uint16_t port;
14
	struct addrinfo *ai;
15
	PrrtChannelStateInformation *csi;
16
17
18
19
20
21
} PrrtReceiver;

PrrtReceiver* PrrtReceiver_create(const char *host, uint16_t port);
bool PrrtReceiver_destroy(PrrtReceiver* receiver);

#endif //PRRT_RECEIVER_H