Before starting to work on nmux
This commit is contained in:
parent
91c91425de
commit
f33a05250c
1 changed files with 10 additions and 2 deletions
10
ddcd.cpp
10
ddcd.cpp
|
@ -205,7 +205,7 @@ int main(int argc, char* argv[])
|
||||||
if(index_in_current_write_buffer >= bufsize)
|
if(index_in_current_write_buffer >= bufsize)
|
||||||
{
|
{
|
||||||
current_write_buffer = pool->get_write_buffer();
|
current_write_buffer = pool->get_write_buffer();
|
||||||
index_in_current_write_buffer = 0;error_exiterror_exit
|
index_in_current_write_buffer = 0;
|
||||||
}
|
}
|
||||||
int retval = read(input_fd, current_write_buffer + index_in_current_write_buffer, bufsize - index_in_current_write_buffer);
|
int retval = read(input_fd, current_write_buffer + index_in_current_write_buffer, bufsize - index_in_current_write_buffer);
|
||||||
if(retval>0)
|
if(retval>0)
|
||||||
|
@ -285,6 +285,14 @@ void* client_thread (void* param) //!TODO
|
||||||
me_the_client->status = CS_THREAD_RUNNING;
|
me_the_client->status = CS_THREAD_RUNNING;
|
||||||
char ctl_data_buffer;
|
char ctl_data_buffer;
|
||||||
int retval;
|
int retval;
|
||||||
|
tsmpool* p1_temp;
|
||||||
|
tsmpool* p2_temp;
|
||||||
|
const int num_client_buffers = 20;
|
||||||
|
if(ddc_method == M_TD)
|
||||||
|
{
|
||||||
|
p1_temp = new tsmpool(bufsize, )
|
||||||
|
}
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in a new issue