Subversion Repositories HelenOS

Rev

Rev 4699 | Rev 4704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4699 Rev 4700
Line 336... Line 336...
336
            }
336
            }
337
            if( ERROR_OCCURRED( sendto( socket_id, reply ? reply : data, reply ? reply_length : ( size_t ) length, 0, ( struct sockaddr * ) & address, sizeof( address )))){
337
            if( ERROR_OCCURRED( sendto( socket_id, reply ? reply : data, reply ? reply_length : ( size_t ) length, 0, ( struct sockaddr * ) & address, sizeof( address )))){
338
                fprintf( stderr, "Socket send error %d\n", ERROR_CODE );
338
                fprintf( stderr, "Socket send error %d\n", ERROR_CODE );
339
            }
339
            }
340
        }
340
        }
341
        if( count > 0 ) -- count;
341
        if( count > 0 ){
-
 
342
            -- count;
-
 
343
            if( verbose ) printf( "Waiting for next %d packet(s)\n", count );
-
 
344
        }
342
    }
345
    }
343
 
346
 
344
    if( verbose ) printf( "Closing the socket\n" );
347
    if( verbose ) printf( "Closing the socket\n" );
345
 
348
 
346
    if( ERROR_OCCURRED( closesocket( socket_id ))){
349
    if( ERROR_OCCURRED( closesocket( socket_id ))){