1. /**
  2. * Copyright (C) 2007 by Marcelo Jorge Vieira (metal) <metal@alucinados.com>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. *
  18. * Public License can be found at http://www.gnu.org/copyleft/gpl.html
  19. *
  20. *
  21. * @author Thadeu Cascardo <cascardo@minaslivre.org>
  22. * @author Marcelo Jorge Vieira (metal) <metal@alucinados.com>
  23. *
  24. */
  25.  
  26. #ifndef VELHA_H
  27. #define VELHA_H
  28.  
  29. #include <sys/types.h>
  30. #include <sys/socket.h>
  31. #include <netinet/in.h>
  32. #include <unistd.h>
  33. #include <errno.h>
  34. #include <string.h>
  35. #include <stdlib.h>
  36.  
  37. #define INDEX(x,y) (3 * (x) + (y))
  38.  
  39. #ifdef BUFSIZ
  40. #undef BUFSIZ
  41. #endif
  42.  
  43. #define BUFSIZ 4096
  44.  
  45. #endif
  46.