MAV'RIC
Main Page
Related Pages
Classes
Files
File List
File Members
MAVRIC_Library
hal_emu
udp_stream.h
1
#ifndef UDP_STREAM_H
2
#define UDP_STREAM_H
3
4
#include <sys/socket.h>
5
#include <sys/types.h>
6
#include <arpa/inet.h>
7
#include "streams.h"
8
#include "buffer.h"
9
typedef
struct
udp_connection_t
{
10
buffer_t
udp_buffer;
11
struct
sockaddr_in Addr;
12
int32_t sock;
13
}
udp_connection_t
;
14
15
16
17
void
register_write_stream_udp(
byte_stream_t
*stream,
udp_connection_t
*udpconn,
const
char
* target_ip, int32_t port);
18
19
void
register_read_stream_udp(
byte_stream_t
*stream,
udp_connection_t
*udpconn, int32_t port);
20
21
22
#endif
buffer_t
Buffer structure.
Definition:
buffer.h:61
byte_stream_t
Byte stream.
Definition:
streams.h:62
udp_connection_t
Definition:
udp_stream.h:9
Generated on Wed Jan 14 2015 09:29:25 for MAV'RIC by
1.8.9.1