summaryrefslogtreecommitdiff
path: root/shared-bindings/socketpool/Socket.h
diff options
context:
space:
mode:
authorMark <56205165+gamblor21@users.noreply.github.com>2020-12-01 15:47:16 -0600
committerGitHub <noreply@github.com>2020-12-01 15:47:16 -0600
commit237385798cb6989a5ed13e120c3cc5e2415af935 (patch)
tree932aa4302e84bd59f84c29c2364f9c6d75192fb2 /shared-bindings/socketpool/Socket.h
parent23ed3ef971f8f38497337874da39273e5ae090d7 (diff)
parent5b3c930e384ef6440f0f7b5167bb54ea68a8be76 (diff)
Merge branch 'main' into bus_device
Diffstat (limited to 'shared-bindings/socketpool/Socket.h')
-rw-r--r--shared-bindings/socketpool/Socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-bindings/socketpool/Socket.h b/shared-bindings/socketpool/Socket.h
index f0be95c92..54fbe59b2 100644
--- a/shared-bindings/socketpool/Socket.h
+++ b/shared-bindings/socketpool/Socket.h
@@ -35,6 +35,10 @@ void common_hal_socketpool_socket_settimeout(socketpool_socket_obj_t* self, mp_u
bool common_hal_socketpool_socket_connect(socketpool_socket_obj_t* self, const char* host, size_t hostlen, mp_int_t port);
mp_uint_t common_hal_socketpool_socket_send(socketpool_socket_obj_t* self, const uint8_t* buf, mp_uint_t len);
mp_uint_t common_hal_socketpool_socket_recv_into(socketpool_socket_obj_t* self, const uint8_t* buf, mp_uint_t len);
+mp_uint_t common_hal_socketpool_socket_sendto(socketpool_socket_obj_t* self,
+ const char* host, size_t hostlen, uint8_t port, const uint8_t* buf, mp_uint_t len);
+mp_uint_t common_hal_socketpool_socket_recvfrom_into(socketpool_socket_obj_t* self,
+ uint8_t* buf, mp_uint_t len, uint8_t* ip, uint *port);
void common_hal_socketpool_socket_close(socketpool_socket_obj_t* self);
bool common_hal_socketpool_socket_get_closed(socketpool_socket_obj_t* self);
bool common_hal_socketpool_socket_get_connected(socketpool_socket_obj_t* self);