Add uart_parse_address_port()

This commit is contained in:
wh201906 committed 2023-12-26 17:58:22 +08:00
1 parent ecec001fdd
commit 81780bd164
4 files changed
+183 -351

No files matched your search

+6 -1
View File
@@ -84,6 +84,11 @@ uint32_t uart_get_timeouts(void);
/* Specify the outbound address and port for TCP/UDP connections
*/
bool uart_bind(void *socket, char *bindAddrStr, char *bindPortStr, bool isBindingIPv6);
bool uart_bind(void *socket, const char *bindAddrStr, const char *bindPortStr, bool isBindingIPv6);
/* Parse address and port from string.
This could change the addrPortStr
*/
int uart_parse_address_port(char *addrPortStr, const char **addrStr, const char **portStr, bool *isIPv6);
#endif // _UART_H_