~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/net_serv.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include <config.h>
 
21
#define __need_timeval 1
 
22
 
22
23
#include "libdrizzle.h"
23
24
#include "libdrizzle_priv.h"
24
25
#include <libdrizzle/errmsg.h>
43
44
*/
44
45
 
45
46
 
 
47
#define update_statistics(A)
 
48
#define thd_increment_bytes_sent(N)
 
49
 
 
50
#define TEST_BLOCKING        8
46
51
#define MAX_PACKET_LENGTH (256L*256L*256L-1)
 
52
#define MIN_COMPRESS_LENGTH             50      /* Don't compress small bl. */
47
53
 
48
54
static bool net_write_buff(NET *net, const unsigned char *packet, uint32_t len);
49
55
 
587
593
      break;
588
594
    }
589
595
    pos+=length;
 
596
    update_statistics(thd_increment_bytes_sent(length));
590
597
  }
591
598
end:
592
599
  if ((net->compress) && (packet != NULL))
689
696
      }
690
697
      remain -= (uint32_t) length;
691
698
      pos+= length;
 
699
      update_statistics(thd_increment_bytes_received(length));
692
700
    }
693
701
    if (i == 0)
694
702
    {                    /* First parts is packet length */