Home
last modified time | relevance | path

Searched refs:aEndpoint (Results 1 – 12 of 12) sorted by relevance

/openthread-3.6.0/src/core/api/
Dtcp_api.cpp46 otTcpEndpoint *aEndpoint, in otTcpEndpointInitialize() argument
49 return AsCoreType(aEndpoint).Initialize(AsCoreType(aInstance), *aArgs); in otTcpEndpointInitialize()
52 otInstance *otTcpEndpointGetInstance(otTcpEndpoint *aEndpoint) { return &AsCoreType(aEndpoint).GetI… in otTcpEndpointGetInstance() argument
54 void *otTcpEndpointGetContext(otTcpEndpoint *aEndpoint) { return AsCoreType(aEndpoint).GetContext()… in otTcpEndpointGetContext() argument
56 const otSockAddr *otTcpGetLocalAddress(const otTcpEndpoint *aEndpoint) in otTcpGetLocalAddress() argument
58 return &AsCoreType(aEndpoint).GetLocalAddress(); in otTcpGetLocalAddress()
61 const otSockAddr *otTcpGetPeerAddress(const otTcpEndpoint *aEndpoint) in otTcpGetPeerAddress() argument
63 return &AsCoreType(aEndpoint).GetPeerAddress(); in otTcpGetPeerAddress()
66 otError otTcpBind(otTcpEndpoint *aEndpoint, const otSockAddr *aSockName) in otTcpBind() argument
68 return AsCoreType(aEndpoint).Bind(AsCoreType(aSockName)); in otTcpBind()
[all …]
Dtcp_ext_api.cpp57 otError otTcpCircularSendBufferWrite(otTcpEndpoint *aEndpoint, in otTcpCircularSendBufferWrite() argument
65 return AsCoreType(aSendBuffer).Write(AsCoreType(aEndpoint), aData, aLength, *aWritten, aFlags); in otTcpCircularSendBufferWrite()
/openthread-3.6.0/include/openthread/
Dtcp.h80 typedef void (*otTcpEstablished)(otTcpEndpoint *aEndpoint);
95 typedef void (*otTcpSendDone)(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData);
165 typedef void (*otTcpForwardProgress)(otTcpEndpoint *aEndpoint, size_t aInSendBuffer, size_t aBacklo…
186 typedef void (*otTcpReceiveAvailable)(otTcpEndpoint *aEndpoint,
219 typedef void (*otTcpDisconnected)(otTcpEndpoint *aEndpoint, otTcpDisconnectedReason aReason);
329 otTcpEndpoint *aEndpoint,
341 otInstance *otTcpEndpointGetInstance(otTcpEndpoint *aEndpoint);
352 void *otTcpEndpointGetContext(otTcpEndpoint *aEndpoint);
365 const otSockAddr *otTcpGetLocalAddress(const otTcpEndpoint *aEndpoint);
378 const otSockAddr *otTcpGetPeerAddress(const otTcpEndpoint *aEndpoint);
[all …]
Dtcp_ext.h153 otError otTcpCircularSendBufferWrite(otTcpEndpoint *aEndpoint,
/openthread-3.6.0/src/cli/
Dcli_tcp.hpp103 static void HandleTcpEstablishedCallback(otTcpEndpoint *aEndpoint);
104 static void HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData);
105 …static void HandleTcpForwardProgressCallback(otTcpEndpoint *aEndpoint, size_t aInSendBuffer, size_…
106 static void HandleTcpReceiveAvailableCallback(otTcpEndpoint *aEndpoint,
110 …static void HandleTcpDisconnectedCallback(otTcpEndpoint *aEndpoint, otTcpDisconnectedReason aReaso…
115 otTcpEndpoint *aEndpoint,
118 void HandleTcpEstablished(otTcpEndpoint *aEndpoint);
119 void HandleTcpSendDone(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData);
120 void HandleTcpForwardProgress(otTcpEndpoint *aEndpoint, size_t aInSendBuffer, size_t aBacklog);
121 void HandleTcpReceiveAvailable(otTcpEndpoint *aEndpoint,
[all …]
Dcli_tcp.cpp764 void TcpExample::HandleTcpEstablishedCallback(otTcpEndpoint *aEndpoint) in HandleTcpEstablishedCallback() argument
766 static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpEstablished(aEndpoint); in HandleTcpEstablishedCallback()
769 void TcpExample::HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData) in HandleTcpSendDoneCallback() argument
771 …static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpSendDone(aEndpoint, aData); in HandleTcpSendDoneCallback()
774 void TcpExample::HandleTcpForwardProgressCallback(otTcpEndpoint *aEndpoint, size_t aInSendBuffer, s… in HandleTcpForwardProgressCallback() argument
776 static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint)) in HandleTcpForwardProgressCallback()
777 ->HandleTcpForwardProgress(aEndpoint, aInSendBuffer, aBacklog); in HandleTcpForwardProgressCallback()
780 void TcpExample::HandleTcpReceiveAvailableCallback(otTcpEndpoint *aEndpoint, in HandleTcpReceiveAvailableCallback() argument
785 static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint)) in HandleTcpReceiveAvailableCallback()
786 ->HandleTcpReceiveAvailable(aEndpoint, aBytesAvailable, aEndOfStream, aBytesRemaining); in HandleTcpReceiveAvailableCallback()
[all …]
/openthread-3.6.0/src/core/net/
Dtcp6.cpp705 void Tcp::ProcessSignals(Endpoint &aEndpoint, in ProcessSignals() argument
710 VerifyOrExit(IsInitialized(aEndpoint) && !aEndpoint.IsClosed()); in ProcessSignals()
711 if (aSignals.conn_established && aEndpoint.mEstablishedCallback != nullptr) in ProcessSignals()
713 aEndpoint.mEstablishedCallback(&aEndpoint); in ProcessSignals()
716 VerifyOrExit(IsInitialized(aEndpoint) && !aEndpoint.IsClosed()); in ProcessSignals()
717 if (aEndpoint.mSendDoneCallback != nullptr) in ProcessSignals()
727 VerifyOrExit(i == 0 || (IsInitialized(aEndpoint) && !aEndpoint.IsClosed())); in ProcessSignals()
730 aEndpoint.mSendDoneCallback(&aEndpoint, curr); in ProcessSignals()
735 VerifyOrExit(IsInitialized(aEndpoint) && !aEndpoint.IsClosed()); in ProcessSignals()
736 if (aEndpoint.mForwardProgressCallback != nullptr) in ProcessSignals()
[all …]
Dtcp6_ext.cpp57 Error TcpCircularSendBuffer::Write(Tcp::Endpoint &aEndpoint, in Write() argument
122 error = aEndpoint.SendByReference(dataSendLink, flags); in Write()
128 error = aEndpoint.SendByExtension(aLength, flags); in Write()
145 error = aEndpoint.SendByExtension(bytesUntilWrap, flags | OT_TCP_SEND_MORE_TO_COME); in Write()
156 error = aEndpoint.SendByReference(wrappedDataSendLink, flags); in Write()
Ddns_client.hpp870 static void HandleTcpEstablishedCallback(otTcpEndpoint *aEndpoint);
871 static void HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData);
872 …static void HandleTcpDisconnectedCallback(otTcpEndpoint *aEndpoint, otTcpDisconnectedReason aReaso…
873 static void HandleTcpReceiveAvailableCallback(otTcpEndpoint *aEndpoint,
878 void HandleTcpEstablished(otTcpEndpoint *aEndpoint);
879 void HandleTcpSendDone(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData);
880 void HandleTcpDisconnected(otTcpEndpoint *aEndpoint, otTcpDisconnectedReason aReason);
881 void HandleTcpReceiveAvailable(otTcpEndpoint *aEndpoint,
Ddns_client.cpp1682 void Client::HandleTcpSendDone(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData) in HandleTcpSendDone() argument
1684 OT_UNUSED_VARIABLE(aEndpoint); in HandleTcpSendDone()
1692 void Client::HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData) in HandleTcpSendDoneCallback() argument
1694 static_cast<Client *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpSendDone(aEndpoint, aData); in HandleTcpSendDoneCallback()
1697 void Client::HandleTcpEstablished(otTcpEndpoint *aEndpoint) in HandleTcpEstablished() argument
1699 OT_UNUSED_VARIABLE(aEndpoint); in HandleTcpEstablished()
1704 void Client::HandleTcpEstablishedCallback(otTcpEndpoint *aEndpoint) in HandleTcpEstablishedCallback() argument
1706 static_cast<Client *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpEstablished(aEndpoint); in HandleTcpEstablishedCallback()
1753 void Client::HandleTcpReceiveAvailable(otTcpEndpoint *aEndpoint, in HandleTcpReceiveAvailable() argument
1758 OT_UNUSED_VARIABLE(aEndpoint); in HandleTcpReceiveAvailable()
[all …]
Dtcp6.hpp661 bool IsInitialized(const Endpoint &aEndpoint) const { return mEndpoints.Contains(aEndpoint); } in IsInitialized()
681 void ProcessSignals(Endpoint &aEndpoint,
Dtcp6_ext.hpp88 …Error Write(Tcp::Endpoint &aEndpoint, const void *aData, size_t aLength, size_t &aWritten, uint32_…