Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-11-05 17:16:40 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ec7343ffab6be23a71b59affad18a4d699011b7e
ec7343ff
2 parents
7bfa86de
315707d7
Merge branch 'srs.master'
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
16 行增加
和
33 行删除
trunk/research/st/public.h
trunk/research/st/public.h
100755 → 100644
查看文件 @
ec7343f
...
...
@@ -97,8 +97,7 @@ extern "C" {
extern
void
st_thread_exit
(
void
*
retval
);
extern
int
st_thread_join
(
st_thread_t
thread
,
void
**
retvalp
);
extern
void
st_thread_interrupt
(
st_thread_t
thread
);
extern
st_thread_t
st_thread_create
(
void
*
(
*
start
)(
void
*
arg
),
void
*
arg
,
int
joinable
,
int
stack_size
);
extern
st_thread_t
st_thread_create
(
void
*
(
*
start
)(
void
*
arg
),
void
*
arg
,
int
joinable
,
int
stack_size
);
extern
int
st_randomize_stacks
(
int
on
);
extern
int
st_set_utime_function
(
st_utime_t
(
*
func
)(
void
));
...
...
@@ -137,37 +136,21 @@ extern "C" {
extern
int
st_netfd_poll
(
st_netfd_t
fd
,
int
how
,
st_utime_t
timeout
);
extern
int
st_poll
(
struct
pollfd
*
pds
,
int
npds
,
st_utime_t
timeout
);
extern
st_netfd_t
st_accept
(
st_netfd_t
fd
,
struct
sockaddr
*
addr
,
int
*
addrlen
,
st_utime_t
timeout
);
extern
int
st_connect
(
st_netfd_t
fd
,
const
struct
sockaddr
*
addr
,
int
addrlen
,
st_utime_t
timeout
);
extern
ssize_t
st_read
(
st_netfd_t
fd
,
void
*
buf
,
size_t
nbyte
,
st_utime_t
timeout
);
extern
ssize_t
st_read_fully
(
st_netfd_t
fd
,
void
*
buf
,
size_t
nbyte
,
st_utime_t
timeout
);
extern
int
st_read_resid
(
st_netfd_t
fd
,
void
*
buf
,
size_t
*
resid
,
st_utime_t
timeout
);
extern
ssize_t
st_readv
(
st_netfd_t
fd
,
const
struct
iovec
*
iov
,
int
iov_size
,
st_utime_t
timeout
);
extern
int
st_readv_resid
(
st_netfd_t
fd
,
struct
iovec
**
iov
,
int
*
iov_size
,
st_utime_t
timeout
);
extern
ssize_t
st_write
(
st_netfd_t
fd
,
const
void
*
buf
,
size_t
nbyte
,
st_utime_t
timeout
);
extern
int
st_write_resid
(
st_netfd_t
fd
,
const
void
*
buf
,
size_t
*
resid
,
st_utime_t
timeout
);
extern
ssize_t
st_writev
(
st_netfd_t
fd
,
const
struct
iovec
*
iov
,
int
iov_size
,
st_utime_t
timeout
);
extern
int
st_writev_resid
(
st_netfd_t
fd
,
struct
iovec
**
iov
,
int
*
iov_size
,
st_utime_t
timeout
);
extern
int
st_recvfrom
(
st_netfd_t
fd
,
void
*
buf
,
int
len
,
struct
sockaddr
*
from
,
int
*
fromlen
,
st_utime_t
timeout
);
extern
int
st_sendto
(
st_netfd_t
fd
,
const
void
*
msg
,
int
len
,
const
struct
sockaddr
*
to
,
int
tolen
,
st_utime_t
timeout
);
extern
int
st_recvmsg
(
st_netfd_t
fd
,
struct
msghdr
*
msg
,
int
flags
,
st_utime_t
timeout
);
extern
int
st_sendmsg
(
st_netfd_t
fd
,
const
struct
msghdr
*
msg
,
int
flags
,
st_utime_t
timeout
);
extern
st_netfd_t
st_accept
(
st_netfd_t
fd
,
struct
sockaddr
*
addr
,
int
*
addrlen
,
st_utime_t
timeout
);
extern
int
st_connect
(
st_netfd_t
fd
,
const
struct
sockaddr
*
addr
,
int
addrlen
,
st_utime_t
timeout
);
extern
ssize_t
st_read
(
st_netfd_t
fd
,
void
*
buf
,
size_t
nbyte
,
st_utime_t
timeout
);
extern
ssize_t
st_read_fully
(
st_netfd_t
fd
,
void
*
buf
,
size_t
nbyte
,
st_utime_t
timeout
);
extern
int
st_read_resid
(
st_netfd_t
fd
,
void
*
buf
,
size_t
*
resid
,
st_utime_t
timeout
);
extern
ssize_t
st_readv
(
st_netfd_t
fd
,
const
struct
iovec
*
iov
,
int
iov_size
,
st_utime_t
timeout
);
extern
int
st_readv_resid
(
st_netfd_t
fd
,
struct
iovec
**
iov
,
int
*
iov_size
,
st_utime_t
timeout
);
extern
ssize_t
st_write
(
st_netfd_t
fd
,
const
void
*
buf
,
size_t
nbyte
,
st_utime_t
timeout
);
extern
int
st_write_resid
(
st_netfd_t
fd
,
const
void
*
buf
,
size_t
*
resid
,
st_utime_t
timeout
);
extern
ssize_t
st_writev
(
st_netfd_t
fd
,
const
struct
iovec
*
iov
,
int
iov_size
,
st_utime_t
timeout
);
extern
int
st_writev_resid
(
st_netfd_t
fd
,
struct
iovec
**
iov
,
int
*
iov_size
,
st_utime_t
timeout
);
extern
int
st_recvfrom
(
st_netfd_t
fd
,
void
*
buf
,
int
len
,
struct
sockaddr
*
from
,
int
*
fromlen
,
st_utime_t
timeout
);
extern
int
st_sendto
(
st_netfd_t
fd
,
const
void
*
msg
,
int
len
,
const
struct
sockaddr
*
to
,
int
tolen
,
st_utime_t
timeout
);
extern
int
st_recvmsg
(
st_netfd_t
fd
,
struct
msghdr
*
msg
,
int
flags
,
st_utime_t
timeout
);
extern
int
st_sendmsg
(
st_netfd_t
fd
,
const
struct
msghdr
*
msg
,
int
flags
,
st_utime_t
timeout
);
extern
st_netfd_t
st_open
(
const
char
*
path
,
int
oflags
,
mode_t
mode
);
#ifdef DEBUG
...
...
请
注册
或
登录
后发表评论