mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #442, add more information for client for api.
This commit is contained in:
parent
94641c812b
commit
aeebddb269
6 changed files with 36 additions and 8 deletions
|
@ -1747,12 +1747,17 @@ string srs_client_type_string(SrsRtmpConnType type)
|
|||
{
|
||||
switch (type) {
|
||||
case SrsRtmpConnPlay: return "Play";
|
||||
case SrsRtmpConnFlashPublish: return "publish(FlashPublish)";
|
||||
case SrsRtmpConnFMLEPublish: return "publish(FMLEPublish)";
|
||||
case SrsRtmpConnFlashPublish: return "flash-publish)";
|
||||
case SrsRtmpConnFMLEPublish: return "fmle-publish";
|
||||
default: return "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
bool srs_client_type_is_publish(SrsRtmpConnType type)
|
||||
{
|
||||
return type != SrsRtmpConnPlay;
|
||||
}
|
||||
|
||||
SrsHandshakeBytes::SrsHandshakeBytes()
|
||||
{
|
||||
c0c1 = s0s1s2 = c2 = NULL;
|
||||
|
|
|
@ -622,6 +622,7 @@ enum SrsRtmpConnType
|
|||
SrsRtmpConnFlashPublish,
|
||||
};
|
||||
std::string srs_client_type_string(SrsRtmpConnType type);
|
||||
bool srs_client_type_is_publish(SrsRtmpConnType type);
|
||||
|
||||
/**
|
||||
* store the handshake bytes,
|
||||
|
|
|
@ -247,7 +247,7 @@ int srs_write_large_iovs(ISrsProtocolReaderWriter* skt, iovec* iovs, int size, s
|
|||
// for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213
|
||||
#ifndef _WIN32
|
||||
// for linux, generally it's 1024.
|
||||
static int limits = sysconf(_SC_IOV_MAX);
|
||||
static int limits = (int)sysconf(_SC_IOV_MAX);
|
||||
#else
|
||||
static int limits = 1024;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue