Transport protocol abstraction layer. More...
|error_t||coapClientOpenConnection (CoapClientContext *context)|
|Open network connection. More...|
|error_t||coapClientEstablishConnection (CoapClientContext *context, const IpAddr *serverIpAddr, uint16_t serverPort)|
|Establish network connection. More...|
|error_t||coapClientShutdownConnection (CoapClientContext *context)|
|Shutdown network connection. More...|
|void||coapClientCloseConnection (CoapClientContext *context)|
|Close network connection. More...|
|error_t||coapClientSendDatagram (CoapClientContext *context, const void *data, size_t length)|
|Send a datagram. More...|
|error_t||coapClientReceiveDatagram (CoapClientContext *context, void *data, size_t size, size_t *received)|
|Receive a datagram. More...|
|error_t||coapClientWaitForDatagram (CoapClientContext *context, systime_t timeout)|
|Wait for incoming datagrams. More...|
Transport protocol abstraction layer.
Copyright (C) 2010-2019 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Definition in file coap_client_transport.c.
Macro Definition Documentation
|void coapClientCloseConnection||(||CoapClientContext *||context||)|
|error_t coapClientEstablishConnection||(||CoapClientContext *||context,|
|const IpAddr *||serverIpAddr,|
|error_t coapClientReceiveDatagram||(||CoapClientContext *||context,|
Receive a datagram.
[in] context Pointer to the CoAP client context [out] data Buffer into which the received datagram will be placed [in] size Maximum number of bytes that can be received [out] received Number of bytes that have been received
- Error code