/openthread-3.6.0/src/core/api/ |
D | tcp_api.cpp | 46 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 …]
|
D | tcp_ext_api.cpp | 57 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/ |
D | tcp.h | 80 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 …]
|
D | tcp_ext.h | 153 otError otTcpCircularSendBufferWrite(otTcpEndpoint *aEndpoint,
|
/openthread-3.6.0/src/cli/ |
D | cli_tcp.hpp | 103 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 …]
|
D | cli_tcp.cpp | 764 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/ |
D | tcp6.cpp | 705 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 …]
|
D | tcp6_ext.cpp | 57 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()
|
D | dns_client.hpp | 870 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,
|
D | dns_client.cpp | 1682 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 …]
|
D | tcp6.hpp | 661 bool IsInitialized(const Endpoint &aEndpoint) const { return mEndpoints.Contains(aEndpoint); } in IsInitialized() 681 void ProcessSignals(Endpoint &aEndpoint,
|
D | tcp6_ext.hpp | 88 …Error Write(Tcp::Endpoint &aEndpoint, const void *aData, size_t aLength, size_t &aWritten, uint32_…
|