MCPcopy Create free account
hub / github.com/amule-project/amule / OnConnectToServer

Method OnConnectToServer

src/ServerListCtrl.cpp:488–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486
487
488void CServerListCtrl::OnConnectToServer( wxCommandEvent& WXUNUSED(event) )
489{
490 int item = GetNextItem( -1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED );
491
492 if ( item > -1 ) {
493 if ( theApp->IsConnectedED2K() ) {
494 theApp->serverconnect->Disconnect();
495 }
496
497 theApp->serverconnect->ConnectToServer( reinterpret_cast<CServer*>(GetItemData(item)) );
498 }
499}
500
501
502void CServerListCtrl::OnGetED2kURL( wxCommandEvent& WXUNUSED(event) )

Callers

nothing calls this directly

Calls 3

IsConnectedED2KMethod · 0.45
DisconnectMethod · 0.45
ConnectToServerMethod · 0.45

Tested by

no test coverage detected