diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-08-12 16:57:39 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-08-19 14:23:18 -0700 |
| commit | eb2c38825edfe28007c2bc6c37bdb0a3269f27e7 (patch) | |
| tree | 397500b58db0cf91e067901041d619b2342d0d32 /shared-bindings/socketpool/Socket.h | |
| parent | c9ece21c2846d57f3c32b364be1209d884e388b1 (diff) | |
HTTP works with my adafruit_requests
Diffstat (limited to 'shared-bindings/socketpool/Socket.h')
| -rw-r--r-- | shared-bindings/socketpool/Socket.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shared-bindings/socketpool/Socket.h b/shared-bindings/socketpool/Socket.h index bbe6227ef..94c939e7b 100644 --- a/shared-bindings/socketpool/Socket.h +++ b/shared-bindings/socketpool/Socket.h @@ -31,8 +31,9 @@ extern const mp_obj_type_t socketpool_socket_type; -// mp_obj_t common_hal_ipaddress_new_ipv4address(uint32_t value); -// void common_hal_ipaddress_ipv4address_construct(ipaddress_ipv4address_obj_t* self, uint8_t* buf, size_t len); -// mp_obj_t common_hal_ipaddress_ipv4address_get_packed(ipaddress_ipv4address_obj_t* self); +void common_hal_socketpool_socket_settimeout(socketpool_socket_obj_t* self, mp_uint_t timeout_ms); +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); #endif // MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL_SOCKET_H |
