mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code for hooks and http core.
This commit is contained in:
parent
79fdc4e766
commit
f516636448
12 changed files with 144 additions and 43 deletions
|
@ -289,6 +289,14 @@ public:
|
|||
* alloc the payload to specified size of bytes.
|
||||
*/
|
||||
virtual void create_payload(int size);
|
||||
public:
|
||||
/**
|
||||
* create common message,
|
||||
* from the header and body.
|
||||
* @remark user should never free the body.
|
||||
* @param pheader, the header to copy to the message. NULL to ignore.
|
||||
*/
|
||||
virtual int create(SrsMessageHeader* pheader, char* body, int size);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue