yy1717
2020-08-21 8a09b209f1c546a2fa15329e8f69b4a4f89557c9
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