projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Processing of UDP events
[lttv.git]
/
lttv
/
lttv
/
sync
/
data_structures.h
diff --git
a/lttv/lttv/sync/data_structures.h
b/lttv/lttv/sync/data_structures.h
index 082bbdf63416e6338ef8165189dc6a563130df51..765967ffda75d2e018906fc6b9cd5d3d638c55dd 100644
(file)
--- a/
lttv/lttv/sync/data_structures.h
+++ b/
lttv/lttv/sync/data_structures.h
@@
-49,6
+49,13
@@
enum Direction
IN,
};
IN,
};
+enum EventType
+{
+ TCP,
+ UDP,
+ TYPE_COUNT,
+};
+
typedef struct
{
enum Direction direction;
typedef struct
{
enum Direction direction;
@@
-59,6
+66,8
@@
typedef struct
typedef struct
{
uint32_t saddr, daddr;
typedef struct
{
uint32_t saddr, daddr;
+ uint16_t source, dest;
+ uint16_t ulen;
uint8_t dataKey[8];
} DatagramKey;
uint8_t dataKey[8];
} DatagramKey;
@@
-76,7
+85,7
@@
typedef struct _Event
// specific event structures and functions could be in separate files and
// type could be an int
// specific event structures and functions could be in separate files and
// type could be an int
- enum
{TCP, UDP}
type;
+ enum
EventType
type;
// event could be a void*, this union is to avoid having to cast
union {
TCPEvent* tcpEvent;
// event could be a void*, this union is to avoid having to cast
union {
TCPEvent* tcpEvent;
@@
-130,6
+139,7
@@
void gdnDestroyEvent(gpointer data);
void destroyEvent(Event* const event);
void destroyTCPEvent(Event* const event);
void destroyUDPEvent(Event* const event);
void destroyEvent(Event* const event);
void destroyTCPEvent(Event* const event);
void destroyUDPEvent(Event* const event);
+void gfDestroyEvent(gpointer data, gpointer user_data);
// Message-related functions
void printTCPSegment(const Message* const segment);
// Message-related functions
void printTCPSegment(const Message* const segment);
@@
-144,4
+154,9
@@
void destroyTCPSegment(Message* const segment);
// Exchange-related functions
void destroyTCPExchange(Exchange* const exchange);
// Exchange-related functions
void destroyTCPExchange(Exchange* const exchange);
+
+// Broadcast-related functions
+void gdnDestroyBroadcast(gpointer data);
+void destroyBroadcast(Broadcast* const broadcast);
+
#endif
#endif
This page took
0.024829 seconds
and
4
git commands to generate.