yy1717
2020-09-21 f1ff7e339eca91b114497d3e847fa1fc33baccc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// Created by YY on 2019/9/29.
//
 
#ifndef RTKBASESTATION_NET_H
#define RTKBASESTATION_NET_H
 
int WriteTCP(int fd, const uint8_t * buf, uint32_t len);
int ReadTCP(int fd, uint8_t * buf, uint32_t len);
int ConnectTCP(const char *ip, uint16_t port);
void DisconnectTCP(int fd);
int EstablishUDP(const char *ip, uint16_t port);
void RemoveUDP(int fd);
int WriteUDP(int fd, char *ip, uint16_t port, const uint8_t * buf, uint32_t len);
int ReadUDP(int fd, uint8_t * buf, uint32_t len);
 
#endif //RTKBASESTATION_NET_H