comparison libmpdemux/network.c @ 8824:87e37d8cfb25

Return another error code for timeout.
author bertrand
date Mon, 06 Jan 2003 16:43:42 +0000
parents 50ffffd0bc18
children c9cbfb9d720c
comparison
equal deleted inserted replaced
8823:557d34fe438a 8824:87e37d8cfb25
205 else if(count > 30 || mp_input_check_interrupt(500)) { 205 else if(count > 30 || mp_input_check_interrupt(500)) {
206 if(count > 30) 206 if(count > 30)
207 mp_msg(MSGT_NETWORK,MSGL_ERR,"Connection timeout\n"); 207 mp_msg(MSGT_NETWORK,MSGL_ERR,"Connection timeout\n");
208 else 208 else
209 mp_msg(MSGT_NETWORK,MSGL_V,"Connection interuppted by user\n"); 209 mp_msg(MSGT_NETWORK,MSGL_V,"Connection interuppted by user\n");
210 return -2; 210 return -3;
211 } 211 }
212 count++; 212 count++;
213 FD_ZERO( &set ); 213 FD_ZERO( &set );
214 FD_SET( socket_server_fd, &set ); 214 FD_SET( socket_server_fd, &set );
215 tv.tv_sec = 0; 215 tv.tv_sec = 0;