mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
for srt set recv buf
This commit is contained in:
parent
ddc5b59a65
commit
7038924c6f
@ -47,7 +47,9 @@ EventPoller::Ptr SrtSession::queryPoller(const Buffer::Ptr &buffer) {
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void SrtSession::attachServer(const toolkit::Server &server){
|
||||
SockUtil::setRecvBuf(getSock()->rawFD(),1024 * 1024);
|
||||
}
|
||||
void SrtSession::onRecv(const Buffer::Ptr &buffer) {
|
||||
uint8_t* data = (uint8_t*)buffer->data();
|
||||
size_t size = buffer->size();
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
void onRecv(const Buffer::Ptr &) override;
|
||||
void onError(const SockException &err) override;
|
||||
void onManager() override;
|
||||
|
||||
void attachServer(const toolkit::Server &server) override;
|
||||
static EventPoller::Ptr queryPoller(const Buffer::Ptr &buffer);
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user