-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux: fixing the network issues (#707)
- Loading branch information
Showing
4 changed files
with
77 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// This file is part of the Corona game engine. | ||
// For overview and more information on licensing please refer to README.md | ||
// For overview and more information on licensing please refer to README.md | ||
// Home page: https://github.com/coronalabs/corona | ||
// Contact: [email protected] | ||
// | ||
|
@@ -14,8 +14,10 @@ | |
|
||
#include "Corona/CoronaLua.h" | ||
#include "Corona/CoronaMacros.h" | ||
#include "Rtt_Event.h" | ||
#include "Rtt_LinuxContainer.h" | ||
#include "NetworkSupport.h" | ||
#include "Rtt_Scheduler.h" | ||
|
||
namespace Rtt | ||
{ | ||
|
@@ -29,7 +31,7 @@ namespace Rtt | |
fRequestState(requestState) | ||
{ | ||
} | ||
|
||
virtual ~NetworkCompletionEvent() | ||
{ | ||
delete fRequestState; | ||
|
@@ -38,7 +40,7 @@ namespace Rtt | |
static const char kName[]; | ||
virtual const char* Name() const { return kName; }; | ||
virtual int Push( lua_State *L ) const; | ||
|
||
smart_ptr<NetworkRequestState> fRequestState; | ||
}; | ||
|
||
|
@@ -79,20 +81,20 @@ namespace Rtt | |
class NetworkNotifierTask : public Task | ||
{ | ||
public: | ||
|
||
NetworkNotifierTask(NetworkRequestParameters* requestParams, NetworkRequestState* requestState, NetworkLibrary* lib) | ||
: Task(true) | ||
, fRequestParams(requestParams) | ||
, fRequestState(requestState) | ||
, fRequestParams(requestParams) | ||
, fRequestState(requestState) | ||
, fNetworkLibrary(lib) | ||
{ | ||
} | ||
|
||
virtual void operator()( Scheduler & sender ); | ||
|
||
smart_ptr<NetworkRequestParameters> fRequestParams; | ||
smart_ptr<NetworkRequestState> fRequestState; | ||
NetworkLibrary* fNetworkLibrary; | ||
}; | ||
|
||
}; | ||
} | ||
#endif // _NetworkLibrary_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters