this link get me 404 not found !!!
this link get me 404 not found !!!
Life is about making the right decisions and moving on.
changed it.
not sure exactly what you're trying to do, though. There needs to be something that knows the id to use, but you dont show where that is in your code
Last edited by amleto; 10th November 2012 at 21:16.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
how to implement with QSignalMapper ?? (if possible)
Life is about making the right decisions and moving on.
Why do you want
void LookUpResult(QHostInfo hi , int id)
when id = hi.lookupId()?*
*I believe this is true but I'm not certain.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
i want to implement a multi stream HTTP proxy that accept many connections from the browser.
my proxy must look up IP address of the host that specified by each TCP stream (for each http request from browser)
thus i must look up the ip for each stream concurrently
i used QHostInfo ( method LookUpHost() ).
now i want connect the result of this function to my customized slot:
how ???Qt Code:
To copy to clipboard, switch view to plain text mode
thanks
Life is about making the right decisions and moving on.
well, you were given the id earlier when you called lookupHost. so save 'id', and when you receive HostInfo you will be ready to call that slot.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
please explain to me by coding. i do not understand your mean.
thanks
Life is about making the right decisions and moving on.
tell me, what is the difference between
hostinfo.lookupId() and your 'int id' in void LookUpResult(QHostInfo @hi , int id)??
I say there is no difference!
Therefore you don't need
because you can useQt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
{ int id = hi.lookupId(); // ... }To copy to clipboard, switch view to plain text mode
Last edited by amleto; 17th November 2012 at 16:38.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks