ovr_sdk
diff LibOVR/Src/Net/OVR_NetworkPlugin.h @ 0:1b39a1b46319
initial 0.4.4
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 14 Jan 2015 06:51:16 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/LibOVR/Src/Net/OVR_NetworkPlugin.h Wed Jan 14 06:51:16 2015 +0200 1.3 @@ -0,0 +1,60 @@ 1.4 +/************************************************************************************ 1.5 + 1.6 +PublicHeader: n/a 1.7 +Filename : OVR_NetworkPlugin.h 1.8 +Content : Base class for an extension to the network objects. 1.9 +Created : June 10, 2014 1.10 +Authors : Kevin Jenkins 1.11 + 1.12 +Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved. 1.13 + 1.14 +Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License"); 1.15 +you may not use the Oculus VR Rift SDK except in compliance with the License, 1.16 +which is provided at the time of installation or download, or which 1.17 +otherwise accompanies this software in either electronic or hard copy form. 1.18 + 1.19 +You may obtain a copy of the License at 1.20 + 1.21 +http://www.oculusvr.com/licenses/LICENSE-3.2 1.22 + 1.23 +Unless required by applicable law or agreed to in writing, the Oculus VR SDK 1.24 +distributed under the License is distributed on an "AS IS" BASIS, 1.25 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1.26 +See the License for the specific language governing permissions and 1.27 +limitations under the License. 1.28 + 1.29 +************************************************************************************/ 1.30 + 1.31 +#ifndef OVR_NetworkPlugin_h 1.32 +#define OVR_NetworkPlugin_h 1.33 + 1.34 +#include "OVR_Session.h" 1.35 + 1.36 +namespace OVR { namespace Net { namespace Plugins { 1.37 + 1.38 + 1.39 +//----------------------------------------------------------------------------- 1.40 +// NetworkPlugin 1.41 + 1.42 +// NetworkPlugins use Session and SessionListener to provide network functionality 1.43 +// independent of the transport medium. 1.44 +// Uses the chain of command design pattern such that plugins can invoke or intercept 1.45 +// network events via the Session. 1.46 +class NetworkPlugin : public SessionListener 1.47 +{ 1.48 +public: 1.49 + NetworkPlugin(); 1.50 + virtual ~NetworkPlugin(); 1.51 + 1.52 +protected: 1.53 + virtual void OnAddedToSession(Session* _pSession); 1.54 + virtual void OnRemovedFromSession(Session* _pSession); 1.55 + 1.56 + Session *pSession; 1.57 + //uint8_t PluginId; 1.58 +}; 1.59 + 1.60 + 1.61 +}}} // OVR::Net::Plugins 1.62 + 1.63 +#endif