aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: when amulegui fails to connect  (Read 2352 times)

lennynero

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 29
when amulegui fails to connect
« on: September 27, 2006, 02:00:18 AM »

hi, i dont' know if there is a post about my request(if yes redirect me to it  :D ) so i explain it:

i would to know when access parameters passed to amulegui are bad...so if i put a wrong pass(wrong ip or wrong port) amulegui process must alert me and show the prompt for retype access parameters...instead of "going to event loop"  and stay in background without connect me..
Logged

lennynero

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 29
RE: when amulegui fails to connect
« Reply #1 on: September 28, 2006, 07:57:10 PM »

i have tried to modify amule-remote-gui.cpp and RemoteConnec.cpp for show an alert when host | port | pass textbox are empty and reshow the ConnectionDialog, but i whould to capture the host:port error and the wrong pass error for reshow the dialog.

Code: [Select]
wxIPV4address addr;

addr.Hostname(host);
addr.Service(port);

if ( !Connect(addr) ) {
return false;
}

In RemoteConnect.cpp[102] i have found this control; can it help me for capture a connection to a wrong service(request to a host:port that have not amuled up)?
when amulegui catch a pass error? i think nowhere..help me please and i try to handle this events..for post a path of all my changes

i dont know if this post is for Future requests section, it must be moved in Development section...

thank u
Logged