ovr_sdk
view LibOVR/Src/Net/OVR_NetworkPlugin.h @ 3:f12a8f74fe1f
added the Xcode project
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 21 Jan 2015 11:37:50 +0200 |
parents | |
children |
line source
1 /************************************************************************************
3 PublicHeader: n/a
4 Filename : OVR_NetworkPlugin.h
5 Content : Base class for an extension to the network objects.
6 Created : June 10, 2014
7 Authors : Kevin Jenkins
9 Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved.
11 Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
12 you may not use the Oculus VR Rift SDK except in compliance with the License,
13 which is provided at the time of installation or download, or which
14 otherwise accompanies this software in either electronic or hard copy form.
16 You may obtain a copy of the License at
18 http://www.oculusvr.com/licenses/LICENSE-3.2
20 Unless required by applicable law or agreed to in writing, the Oculus VR SDK
21 distributed under the License is distributed on an "AS IS" BASIS,
22 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 See the License for the specific language governing permissions and
24 limitations under the License.
26 ************************************************************************************/
28 #ifndef OVR_NetworkPlugin_h
29 #define OVR_NetworkPlugin_h
31 #include "OVR_Session.h"
33 namespace OVR { namespace Net { namespace Plugins {
36 //-----------------------------------------------------------------------------
37 // NetworkPlugin
39 // NetworkPlugins use Session and SessionListener to provide network functionality
40 // independent of the transport medium.
41 // Uses the chain of command design pattern such that plugins can invoke or intercept
42 // network events via the Session.
43 class NetworkPlugin : public SessionListener
44 {
45 public:
46 NetworkPlugin();
47 virtual ~NetworkPlugin();
49 protected:
50 virtual void OnAddedToSession(Session* _pSession);
51 virtual void OnRemovedFromSession(Session* _pSession);
53 Session *pSession;
54 //uint8_t PluginId;
55 };
58 }}} // OVR::Net::Plugins
60 #endif