otTcpEndpoint

#include <tcp.h>

This structure represents a TCP endpoint.

Summary

An TCP endpoint acts an endpoint of TCP connection. It can be used to initiate TCP connections, and, once a TCP connection is established, send data to and receive data from the connection peer.

The application should not inspect the fields of this structure directly; it should only interact with it via the TCP API functions whose signatures are provided in this file.

Public attributes

mContext
void *
A pointer to application-specific context.
mDisconnectedCallback
"Disconnected" callback function
mEstablishedCallback
"Established" callback function
mInstance
A pointer to the OpenThread instance associated with this TCP endpoint.
mNext
struct otTcpEndpoint *
A pointer to the next TCP endpoint (internal use only)
mReceiveAvailableCallback
"Receive available" callback function
mSendDoneCallback
"Send done" callback function
mSendReadyCallback
"Send ready" callback function
mTimers[4]
uint32_t

Public attributes

mContext

void * otTcpEndpoint::mContext

A pointer to application-specific context.

mDisconnectedCallback

otTcpDisconnected otTcpEndpoint::mDisconnectedCallback

"Disconnected" callback function

mEstablishedCallback

otTcpEstablished otTcpEndpoint::mEstablishedCallback

"Established" callback function

mInstance

otInstance * otTcpEndpoint::mInstance

A pointer to the OpenThread instance associated with this TCP endpoint.

mNext

struct otTcpEndpoint * otTcpEndpoint::mNext

A pointer to the next TCP endpoint (internal use only)

mReceiveAvailableCallback

otTcpReceiveAvailable otTcpEndpoint::mReceiveAvailableCallback

"Receive available" callback function

mSendDoneCallback

otTcpSendDone otTcpEndpoint::mSendDoneCallback

"Send done" callback function

mSendReadyCallback

otTcpSendReady otTcpEndpoint::mSendReadyCallback

"Send ready" callback function

mTimers

uint32_t otTcpEndpoint::mTimers[4]