L2capEndpoint
L2capEndpoint::_WaitForStateChange(bigtime_t absoluteTimeout)
L2capEndpoint::Open()
L2capEndpoint::Shutdown()
L2capEndpoint::Close()
L2capEndpoint::Free()
L2capEndpoint::Bind(const struct sockaddr* _address)
L2capEndpoint::Unbind()
L2capEndpoint::Listen(int backlog)
L2capEndpoint::Connect(const struct sockaddr* _address)
L2capEndpoint::Accept(net_socket** _acceptedSocket)
L2capEndpoint::ReadData(size_t numBytes, uint32 flags, net_buffer** _buffer)
L2capEndpoint::SendData(net_buffer* buffer)
L2capEndpoint::ReceiveData(net_buffer* buffer)
L2capEndpoint::_SendTimer(net_timer* timer, void* _endpoint)
L2capEndpoint* endpoint = (L2capEndpoint*)_endpoint;
L2capEndpoint::_SendQueued()
L2capEndpoint::Sendable()
L2capEndpoint::Receivable()
L2capEndpoint::_HandleCommandRejected(uint8 ident, uint16 reason,
L2capEndpoint::L2capEndpoint(net_socket* socket)
L2capEndpoint::_HandleConnectionReq(HciConnection* connection,
L2capEndpoint* endpoint = (L2capEndpoint*)newSocket->first_protocol;
L2capEndpoint::_HandleConnectionRsp(uint8 ident, const l2cap_connection_rsp& response)
L2capEndpoint::_SendChannelConfig()
L2capEndpoint::_HandleConfigurationReq(uint8 ident, uint16 flags,
L2capEndpoint::_HandleConfigurationRsp(uint8 ident, uint16 scid, uint16 flags,
L2capEndpoint::_MarkEstablished()
L2capEndpoint::_HandleDisconnectionReq(uint8 ident, uint16 scid)
gStackModule->init_timer(&fSendTimer, L2capEndpoint::_SendTimer, this);
L2capEndpoint::_HandleDisconnectionRsp(uint8 ident, uint16 dcid, uint16 scid)
L2capEndpoint::~L2capEndpoint()
L2capEndpoint::_MarkClosed()
class L2capEndpoint;
class L2capEndpoint : public net_protocol, public ProtocolSocket, public AVLTreeNode {
L2capEndpoint(net_socket* socket);
virtual ~L2capEndpoint();
L2capEndpointManager::UnbindFromChannel(L2capEndpoint* endpoint)
L2capEndpoint*
L2capEndpoint* endpoint = iter.Next();
endpoint->fState = L2capEndpoint::CLOSED;
L2capEndpointManager::Bind(L2capEndpoint* endpoint, const sockaddr_l2cap& address)
L2capEndpointManager::Unbind(L2capEndpoint* endpoint)
L2capEndpoint*
L2capEndpointManager::BindToChannel(L2capEndpoint* endpoint)
status_t Bind(L2capEndpoint* endpoint, const sockaddr_l2cap& address);
status_t Unbind(L2capEndpoint* endpoint);
L2capEndpoint* ForPSM(uint16 psm);
status_t BindToChannel(L2capEndpoint* endpoint);
status_t UnbindFromChannel(L2capEndpoint* endpoint);
L2capEndpoint* ForChannel(uint16 cid);
typedef L2capEndpoint Value;
return ((L2capEndpoint*)protocol)->Bind(address);
return ((L2capEndpoint*)protocol)->Unbind();
return ((L2capEndpoint*)protocol)->Listen(count);
return ((L2capEndpoint*)protocol)->Shutdown();
return ((L2capEndpoint*)protocol)->SendData(buffer);
return ((L2capEndpoint*)protocol)->Sendable();
return ((L2capEndpoint*)protocol)->ReadData(numBytes, flags, _buffer);
return ((L2capEndpoint*)protocol)->Receivable();
L2capEndpoint* endpoint = gL2capEndpointManager.ForPSM(psm);
L2capEndpoint* endpoint = gL2capEndpointManager.ForChannel(dcid);
L2capEndpoint* protocol = new(std::nothrow) L2capEndpoint(socket);
L2capEndpoint* endpoint = static_cast<L2capEndpoint*>(protocol);
return ((L2capEndpoint*)protocol)->Open();
return ((L2capEndpoint*)protocol)->Close();
return ((L2capEndpoint*)protocol)->Free();
return ((L2capEndpoint*)protocol)->Connect(address);
return ((L2capEndpoint*)protocol)->Accept(_acceptedSocket);
L2capEndpoint* endpoint = gL2capEndpointManager.ForChannel(dcid);
l2cap_handle_configuration_rsp(HciConnection* conn, L2capEndpoint* endpoint,
L2capEndpoint* endpoint = gL2capEndpointManager.ForChannel(dcid);
l2cap_handle_disconnection_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer)
l2cap_handle_echo_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer, uint16 length)
l2cap_handle_info_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer)
l2cap_handle_command_reject(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer)
L2capEndpoint* endpoint = NULL;
endpoint = static_cast<L2capEndpoint*>(
L2capEndpoint* endpoint = gL2capEndpointManager.ForPSM(psm);
l2cap_handle_connection_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer)