ovr_sdk

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