otTcpEndpoint

#include <tcp.h>

代表 TCP 端點。

摘要

TCP 端點會執行 TCP 連線的端點。可用來啟動 TCP 連線,在 TCP 連線建立後,即可向連線對等點傳送資料。

應用程式不應直接檢查這個結構中的欄位,而應透過該檔案提供的 TCP API 函式與它互動。

公開屬性

mAlign
uint64_t
mContext
void *
指向應用程式特定結構定義的指標。
mDisconnectedCallback
「中斷連線」回呼函式
mEstablishedCallback
「已建立」回呼函式
mForwardProgressCallback
「轉寄進度」回呼函式
mNext
struct otTcpEndpoint *
指向下一個 TCP 端點的指標 (僅限內部使用)
mPendingCallbacks
uint8_t
mReceiveAvailableCallback
「接收可用」回呼函式
mReceiveLinks[2]
mSendDoneCallback
「傳送完成」回呼函式
mSize[392+36 *sizeof(void *)]
uint8_t
mSockAddr
mTcb
union otTcpEndpoint::@29
mTimers[4]
uint32_t

公開屬性

對齊

uint64_t otTcpEndpoint::mAlign

mContext

void * otTcpEndpoint::mContext

指向應用程式特定結構定義的指標。

m 解除 edCallback

otTcpDisconnected otTcpEndpoint::mDisconnectedCallback

「中斷連線」回呼函式

mCalledCallback

otTcpEstablished otTcpEndpoint::mEstablishedCallback

「已建立」回呼函式

mForwardProgressCallback

otTcpForwardProgress otTcpEndpoint::mForwardProgressCallback

「轉寄進度」回呼函式

下一步

struct otTcpEndpoint * otTcpEndpoint::mNext

指向下一個 TCP 端點的指標 (僅限內部使用)

mPendingCallback

uint8_t otTcpEndpoint::mPendingCallbacks

mReceiveAvailableCallback

otTcpReceiveAvailable otTcpEndpoint::mReceiveAvailableCallback

「接收可用」回呼函式

otLinkedBuffer otTcpEndpoint::mReceiveLinks[2]

mSendDoneCallback

otTcpSendDone otTcpEndpoint::mSendDoneCallback

「傳送完成」回呼函式

M 號

uint8_t otTcpEndpoint::mSize[392+36 *sizeof(void *)]

mSockAddr

otSockAddr otTcpEndpoint::mSockAddr

mcb

union otTcpEndpoint::@29 otTcpEndpoint::mTcb

計時器

uint32_t otTcpEndpoint::mTimers[4]

資源

OpenThread API 參考資料主題源自原始碼,可於 GitHub 取得。如需更多資訊或為說明文件貢獻心力,請參閱資源