op.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * op.h
  3. * Onion Proxy
  4. *
  5. * Matej Pfajfar <mp292@cam.ac.uk>
  6. */
  7. /*
  8. * Changes :
  9. * $Log$
  10. * Revision 1.1 2002/06/26 22:45:50 arma
  11. * Initial revision
  12. *
  13. * Revision 1.7 2002/03/28 11:01:43 badbytes
  14. * Now does link-encryption and link-padding.
  15. *
  16. * Revision 1.6 2002/03/12 23:40:32 mp292
  17. * Started on op<->router connection padding.
  18. *
  19. * Revision 1.5 2002/01/29 02:22:58 mp292
  20. * Put a timeout on all network I/O.
  21. *
  22. * Revision 1.4 2002/01/26 23:01:55 mp292
  23. * Reviewed according to Secure-Programs-HOWTO.
  24. *
  25. * Revision 1.3 2001/12/18 11:52:27 badbytes
  26. * Coding completed. Proceeding to test.
  27. *
  28. * Revision 1.2 2001/12/17 13:36:15 badbytes
  29. * Writing handle_connection()
  30. *
  31. * Revision 1.1 2001/12/13 15:15:11 badbytes
  32. * Started coding the onion proxy.
  33. *
  34. */
  35. #ifndef __OP_H
  36. #define __OP_H
  37. /* choosing the length of a route uses a weighted coin
  38. * this is the default value for it */
  39. #define OP_DEFAULT_COIN_WEIGHT 0.8
  40. /* default connection timeout */
  41. #define OP_DEFAULT_CONN_TIMEOUT 120 /* 120s */
  42. /* default connection bandwidth */
  43. #define OP_DEFAULT_BANDWIDTH 1 /* 1kb/s */
  44. /* default buffer size per connection */
  45. #define OP_DEFAULT_BUFSIZE 4096 /* 4kb */
  46. #endif