mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 10:46:23 -04:00
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:
parent
8f0f6a9f3e
commit
fc15899f0f
23 changed files with 10288 additions and 0 deletions
18
plugins/VOIP/rsvoipitems.h
Normal file
18
plugins/VOIP/rsvoipitems.h
Normal 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.
|
Loading…
Add table
Add a link
Reference in a new issue