mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Added explanatory comment for AT cellular stack's socket_open routine
parent
31da50e8fa
commit
9ddb843cc8
|
|
@ -52,6 +52,12 @@ protected: // NetworkStack
|
||||||
*/
|
*/
|
||||||
virtual nsapi_error_t socket_stack_init();
|
virtual nsapi_error_t socket_stack_init();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Note: Socket_open does not actually open socket on all drivers, but that's deferred until calling `sendto`.
|
||||||
|
* The reason is that IP stack implementations are very much modem specific and it's quite common that when a
|
||||||
|
* socket is created (via AT commands) it must also be given remote IP address, and that is usually known
|
||||||
|
* only when calling `sendto`.
|
||||||
|
*/
|
||||||
virtual nsapi_error_t socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto);
|
virtual nsapi_error_t socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto);
|
||||||
|
|
||||||
virtual nsapi_error_t socket_close(nsapi_socket_t handle);
|
virtual nsapi_error_t socket_close(nsapi_socket_t handle);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue