Home
last modified time | relevance | path

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

/openthread-3.5.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.5.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.5.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.cpp575 void TcpExample::HandleTcpEstablishedCallback(otTcpEndpoint *aEndpoint) in HandleTcpEstablishedCallback() argument
577 static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpEstablished(aEndpoint); in HandleTcpEstablishedCallback()
580 void TcpExample::HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData) in HandleTcpSendDoneCallback() argument
582 …static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpSendDone(aEndpoint, aData); in HandleTcpSendDoneCallback()
585 void TcpExample::HandleTcpForwardProgressCallback(otTcpEndpoint *aEndpoint, size_t aInSendBuffer, s… in HandleTcpForwardProgressCallback() argument
587 static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint)) in HandleTcpForwardProgressCallback()
588 ->HandleTcpForwardProgress(aEndpoint, aInSendBuffer, aBacklog); in HandleTcpForwardProgressCallback()
591 void TcpExample::HandleTcpReceiveAvailableCallback(otTcpEndpoint *aEndpoint, in HandleTcpReceiveAvailableCallback() argument
596 static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint)) in HandleTcpReceiveAvailableCallback()
597 ->HandleTcpReceiveAvailable(aEndpoint, aBytesAvailable, aEndOfStream, aBytesRemaining); in HandleTcpReceiveAvailableCallback()
[all …]
/openthread-3.5.0/src/core/net/
Dtcp6.cpp708 void Tcp::ProcessSignals(Endpoint &aEndpoint, in ProcessSignals() argument
713 VerifyOrExit(IsInitialized(aEndpoint) && !aEndpoint.IsClosed()); in ProcessSignals()
714 if (aSignals.conn_established && aEndpoint.mEstablishedCallback != nullptr) in ProcessSignals()
716 aEndpoint.mEstablishedCallback(&aEndpoint); in ProcessSignals()
719 VerifyOrExit(IsInitialized(aEndpoint) && !aEndpoint.IsClosed()); in ProcessSignals()
720 if (aEndpoint.mSendDoneCallback != nullptr) in ProcessSignals()
730 VerifyOrExit(i == 0 || (IsInitialized(aEndpoint) && !aEndpoint.IsClosed())); in ProcessSignals()
733 aEndpoint.mSendDoneCallback(&aEndpoint, curr); in ProcessSignals()
738 VerifyOrExit(IsInitialized(aEndpoint) && !aEndpoint.IsClosed()); in ProcessSignals()
739 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.cpp1687 void Client::HandleTcpSendDone(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData) in HandleTcpSendDone() argument
1689 OT_UNUSED_VARIABLE(aEndpoint); in HandleTcpSendDone()
1697 void Client::HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData) in HandleTcpSendDoneCallback() argument
1699 static_cast<Client *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpSendDone(aEndpoint, aData); in HandleTcpSendDoneCallback()
1702 void Client::HandleTcpEstablished(otTcpEndpoint *aEndpoint) in HandleTcpEstablished() argument
1704 OT_UNUSED_VARIABLE(aEndpoint); in HandleTcpEstablished()
1709 void Client::HandleTcpEstablishedCallback(otTcpEndpoint *aEndpoint) in HandleTcpEstablishedCallback() argument
1711 static_cast<Client *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpEstablished(aEndpoint); in HandleTcpEstablishedCallback()
1758 void Client::HandleTcpReceiveAvailable(otTcpEndpoint *aEndpoint, in HandleTcpReceiveAvailable() argument
1763 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_…