Skip to content

Commit f33a052

Browse files
committed
Before starting to work on nmux
1 parent 91c9142 commit f33a052

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ddcd.cpp

+10-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ int main(int argc, char* argv[])
205205
if(index_in_current_write_buffer >= bufsize)
206206
{
207207
current_write_buffer = pool->get_write_buffer();
208-
index_in_current_write_buffer = 0;error_exiterror_exit
208+
index_in_current_write_buffer = 0;
209209
}
210210
int retval = read(input_fd, current_write_buffer + index_in_current_write_buffer, bufsize - index_in_current_write_buffer);
211211
if(retval>0)
@@ -285,6 +285,14 @@ void* client_thread (void* param) //!TODO
285285
me_the_client->status = CS_THREAD_RUNNING;
286286
char ctl_data_buffer;
287287
int retval;
288+
tsmpool* p1_temp;
289+
tsmpool* p2_temp;
290+
const int num_client_buffers = 20;
291+
if(ddc_method == M_TD)
292+
{
293+
p1_temp = new tsmpool(bufsize, )
294+
}
295+
288296
for(;;)
289297
{
290298
do
@@ -312,7 +320,7 @@ void* client_thread (void* param) //!TODO
312320
void error_exit(const char* why)
313321
{
314322
perror(why); //do we need a \n at the end of (why)?
315-
exit(1);
323+
exit(1);
316324
}
317325

318326
void print_exit(const char* why)

0 commit comments

Comments
 (0)