From dda2a3f3218cf84f63876124cdbc6352c071be79 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 7 Mar 2005 22:16:25 +0000 Subject: [PATCH] added some debugging output git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@197 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libtransport/transport_socket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libtransport/transport_socket.c b/src/libtransport/transport_socket.c index 49864eb..d9404ed 100644 --- a/src/libtransport/transport_socket.c +++ b/src/libtransport/transport_socket.c @@ -121,6 +121,7 @@ int tcp_send( transport_socket* sock_obj, const char* data ){ // ------------------------------------------------------------------ // Send the data down the TCP pipe // ------------------------------------------------------------------ + debug_handler( "Sending Data At %f Seconds", get_timestamp_millis() ); if( send( sock_obj->sock_fd, data, strlen(data), 0 ) < 0 ) { fatal_handler( "tcp_send(): Error sending data" ); return 0; @@ -209,6 +210,7 @@ int tcp_wait( transport_socket* sock_obj, int timeout ){ #else // read everything we can + debug_handler( "Receiving Data At %f Seconds", get_timestamp_millis() ); while( (n = recv(sock_fd, buf, BUFSIZE-1, 0) ) > 0 ) { //printf("\nReceived: %s\n", buf); sock_obj->data_received_callback( sock_obj->user_data, buf ); -- 2.11.0