- typedef vector<MPPlayer*> t_MPClientList;
- typedef t_MPClientList::iterator t_MPClientListIterator;
- MPPlayer* m_LocalPlayer;
- netSocket* m_DataSocket;
- netAddress m_Server;
- bool m_HaveServer;
- bool m_Initialised;
- t_MPClientList m_MPClientList;
- string m_RxAddress;
- int m_RxPort;
- string m_Callsign;
+ union MsgBuf;
+ FGAIMultiplayer* addMultiplayer(const std::string& callsign,
+ const std::string& modelName);
+ FGAIMultiplayer* getMultiplayer(const std::string& callsign);
+ void FillMsgHdr(T_MsgHdr *MsgHdr, int iMsgId, unsigned _len = 0u);
+ void ProcessPosMsg(const MsgBuf& Msg, const netAddress& SenderAddress,
+ long stamp);
+ void ProcessChatMsg(const MsgBuf& Msg, const netAddress& SenderAddress);
+
+ /// maps from the callsign string to the FGAIMultiplayer
+ typedef std::map<std::string, osg::ref_ptr<FGAIMultiplayer> > MultiPlayerMap;
+ MultiPlayerMap mMultiPlayerMap;
+
+ netSocket* mSocket;
+ netAddress mServer;
+ bool mHaveServer;
+ bool mInitialised;
+ string mCallsign;