Browse Source

cc3200: Add socket.sendall() (aliases to send()).

Simplelink's socket send checks for the size of the packet and sends
it in chunks if the size is too large.
pull/1384/head
Daniel Campora 9 years ago
parent
commit
f22b35e4e5
  1. 1
      cc3200/mods/modusocket.c
  2. 1
      cc3200/qstrdefsport.h

1
cc3200/mods/modusocket.c

@ -399,6 +399,7 @@ STATIC const mp_map_elem_t socket_locals_dict_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_accept), (mp_obj_t)&socket_accept_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_accept), (mp_obj_t)&socket_accept_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_connect), (mp_obj_t)&socket_connect_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_connect), (mp_obj_t)&socket_connect_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_send), (mp_obj_t)&socket_send_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_send), (mp_obj_t)&socket_send_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_sendall), (mp_obj_t)&socket_send_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_recv), (mp_obj_t)&socket_recv_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_recv), (mp_obj_t)&socket_recv_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_sendto), (mp_obj_t)&socket_sendto_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_sendto), (mp_obj_t)&socket_sendto_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_recvfrom), (mp_obj_t)&socket_recvfrom_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_recvfrom), (mp_obj_t)&socket_recvfrom_obj },

1
cc3200/qstrdefsport.h

@ -215,6 +215,7 @@ Q(getaddrinfo)
Q(family) Q(family)
Q(type) Q(type)
Q(send) Q(send)
Q(sendall)
Q(sendto) Q(sendto)
Q(recv) Q(recv)
Q(recvfrom) Q(recvfrom)

Loading…
Cancel
Save