@@ -336,34 +336,34 @@ class NetworkStack: public DNS {
336
336
*/
337
337
virtual void socket_attach (nsapi_socket_t handle, void (*callback)(void *), void *data) = 0;
338
338
339
- /* * Set stack-specific socket options
339
+ /* * Set stack-specific socket options.
340
340
*
341
341
* The setsockopt allow an application to pass stack-specific hints
342
342
* to the underlying stack. For unsupported options,
343
343
* NSAPI_ERROR_UNSUPPORTED is returned and the socket is unmodified.
344
344
*
345
- * @param handle Socket handle
346
- * @param level Stack-specific protocol level
347
- * @param optname Stack-specific option identifier
348
- * @param optval Option value
349
- * @param optlen Length of the option value
350
- * @return NSAPI_ERROR_OK on success, negative error code on failure
345
+ * @param handle Socket handle.
346
+ * @param level Stack-specific protocol level.
347
+ * @param optname Stack-specific option identifier.
348
+ * @param optval Option value.
349
+ * @param optlen Length of the option value.
350
+ * @return NSAPI_ERROR_OK on success, negative error code on failure.
351
351
*/
352
352
virtual nsapi_error_t setsockopt (nsapi_socket_t handle, int level,
353
353
int optname, const void *optval, unsigned optlen);
354
354
355
- /* * Get stack-specific socket options
355
+ /* * Get stack-specific socket options.
356
356
*
357
357
* The getstackopt allow an application to retrieve stack-specific hints
358
358
* from the underlying stack. For unsupported options,
359
359
* NSAPI_ERROR_UNSUPPORTED is returned and optval is unmodified.
360
360
*
361
- * @param handle Socket handle
362
- * @param level Stack-specific protocol level
363
- * @param optname Stack-specific option identifier
364
- * @param optval Destination for option value
365
- * @param optlen Length of the option value
366
- * @return NSAPI_ERROR_OK on success, negative error code on failure
361
+ * @param handle Socket handle.
362
+ * @param level Stack-specific protocol level.
363
+ * @param optname Stack-specific option identifier.
364
+ * @param optval Destination for option value.
365
+ * @param optlen Length of the option value.
366
+ * @return NSAPI_ERROR_OK on success, negative error code on failure.
367
367
*/
368
368
virtual nsapi_error_t getsockopt (nsapi_socket_t handle, int level,
369
369
int optname, void *optval, unsigned *optlen);
0 commit comments