first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
typedef struct {
|
||||
int *sock;
|
||||
int port;
|
||||
void (*rxfunc)(uint8_t *, int, struct sockaddr_in*);
|
||||
int *keeprunning;
|
||||
} RXCFG;
|
||||
|
||||
void UdpRxInit(int *sock, int port, void (*rxfunc)(uint8_t *, int, struct sockaddr_in*), int *keeprunning);
|
||||
void sendUDP(char *destIP, int destPort, uint8_t *pdata, int len);
|
||||
Reference in New Issue
Block a user