started conversion of VOIP code (from Joss) into a plugin. Unfinished!

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4945 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-02-15 21:17:18 +00:00
parent 8f0f6a9f3e
commit fc15899f0f
23 changed files with 10288 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#pragma once
const uint8_t RS_VOIP_SUBTYPE_RINGING = 0x01 ;
const uint8_t RS_VOIP_SUBTYPE_ACKNOWL = 0x02 ;
const uint8_t RS_VOIP_SUBTYPE_DATA = 0x03 ;
class RsVoipItem: public RsItem
{
public:
RsVoipItem(uint8_t turtle_subtype) : RsItem(RS_PKT_VERSION_SERVICE,RS_SERVICE_TYPE_VOIP,voip_subtype) {}
virtual bool serialize(void *data,uint32_t& size) = 0 ; // Isn't it better that items can serialize themselves ?
virtual uint32_t serial_size() = 0 ; // deserialise is handled using a constructor
virtual void clear() {}
};
// to derive: hanshake items, data items etc.