Patch level : 4.0
Files correlati : Ricompilazione Demo : [ ] Commento : Sposta i server nella cartella giusta git-svn-id: svn://10.65.10.50/trunk@15913 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
46473e871f
commit
9f78f19950
@ -451,11 +451,11 @@ void TBaseServerApp::ProcessCommand(wxString cmd, wxSocketBase& outs)
|
|||||||
ProcessHttpGet(cmd, outs);
|
ProcessHttpGet(cmd, outs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TBaseServerApp::OnServerEvent(wxSocketEvent& event)
|
void TBaseServerApp::OnServerEvent(wxSocketEvent& e)
|
||||||
{
|
{
|
||||||
wxString s = "--- OnServerEvent: ";
|
wxString s = "--- OnServerEvent: ";
|
||||||
|
|
||||||
switch(event.GetSocketEvent())
|
switch(e.GetSocketEvent())
|
||||||
{
|
{
|
||||||
case wxSOCKET_CONNECTION : s.Append("wxSOCKET_CONNECTION"); break;
|
case wxSOCKET_CONNECTION : s.Append("wxSOCKET_CONNECTION"); break;
|
||||||
default : s.Append("Unexpected event!"); break;
|
default : s.Append("Unexpected event!"); break;
|
||||||
@ -624,14 +624,10 @@ bool TBaseServerApp::OnInit()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LINUX
|
|
||||||
wxString path;
|
wxString path;
|
||||||
|
|
||||||
wxFileName::SplitPath(argv[0], &path, NULL, NULL);
|
wxFileName::SplitPath(argv[0], &path, NULL, NULL);
|
||||||
|
|
||||||
if (!path.IsEmpty())
|
if (!path.IsEmpty())
|
||||||
wxSetWorkingDirectory(path);
|
wxSetWorkingDirectory(path);
|
||||||
#endif
|
|
||||||
|
|
||||||
// Create the address - defaults to localhost:0 initially
|
// Create the address - defaults to localhost:0 initially
|
||||||
wxIPV4address addr;
|
wxIPV4address addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user