mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-30 07:26:53 +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;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
void SrtSession::attachServer(const toolkit::Server &server){
|
||||||
|
SockUtil::setRecvBuf(getSock()->rawFD(),1024 * 1024);
|
||||||
|
}
|
||||||
void SrtSession::onRecv(const Buffer::Ptr &buffer) {
|
void SrtSession::onRecv(const Buffer::Ptr &buffer) {
|
||||||
uint8_t* data = (uint8_t*)buffer->data();
|
uint8_t* data = (uint8_t*)buffer->data();
|
||||||
size_t size = buffer->size();
|
size_t size = buffer->size();
|
||||||
|
@ -16,7 +16,7 @@ public:
|
|||||||
void onRecv(const Buffer::Ptr &) override;
|
void onRecv(const Buffer::Ptr &) override;
|
||||||
void onError(const SockException &err) override;
|
void onError(const SockException &err) override;
|
||||||
void onManager() override;
|
void onManager() override;
|
||||||
|
void attachServer(const toolkit::Server &server) override;
|
||||||
static EventPoller::Ptr queryPoller(const Buffer::Ptr &buffer);
|
static EventPoller::Ptr queryPoller(const Buffer::Ptr &buffer);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user