mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-21 17:17:49 +08:00
完善网络相关信息
This commit is contained in:
parent
26cfb5ae73
commit
1c03acbdb9
@ -129,11 +129,11 @@ bool RtpProcess::inputRtp(const Socket::Ptr &sock, const char *data, int data_le
|
|||||||
//检查源是否合法
|
//检查源是否合法
|
||||||
if(!_addr){
|
if(!_addr){
|
||||||
_addr = new struct sockaddr;
|
_addr = new struct sockaddr;
|
||||||
|
_sock = sock;
|
||||||
memcpy(_addr,addr, sizeof(struct sockaddr));
|
memcpy(_addr,addr, sizeof(struct sockaddr));
|
||||||
DebugP(this) << "bind to address:" << printAddress(_addr);
|
DebugP(this) << "bind to address:" << printAddress(_addr);
|
||||||
//推流鉴权
|
//推流鉴权
|
||||||
emitOnPublish();
|
emitOnPublish();
|
||||||
_sock = sock;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!_muxer){
|
if(!_muxer){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user