home *** CD-ROM | disk | FTP | other *** search
/ BUG 14 / BUGCD1998_05.ISO / internet / tcp4u / tcp4u330.exe / tcp4u.330 / src / dimens.h < prev    next >
C/C++ Source or Header  |  1998-03-05  |  3KB  |  78 lines

  1. /*
  2.  * Tcp4u v 3.30
  3.  *
  4.  *===========================================================================
  5.  *
  6.  * Project: Tcp4u,      Library for tcp protocol
  7.  * File:    dimens.h
  8.  * Purpose: Internal header file
  9.  *
  10.  *===========================================================================
  11.  *
  12.  * This software is Copyright (c) 1996-1998 by Philippe Jounin
  13.  *
  14.  * This library is free software; you can redistribute it and/or
  15.  * modify it under the terms of the GNU Library General Public
  16.  * License as published by the Free Software Foundation; either
  17.  * version 2 of the License, or (at your option) any later version.
  18.  * 
  19.  * This library is distributed in the hope that it will be useful,
  20.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  22.  * Library General Public License for more details.
  23.  * 
  24.  * You should have received a copy of the GNU Library General Public
  25.  * License along with this library; if not, write to the
  26.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  27.  * Boston, MA  02111-1307, USA.
  28.  *
  29.  *
  30.  *  If you make modifications to this software that you feel
  31.  *  increases it usefulness for the rest of the community, please
  32.  *  email the changes, enhancements, bug fixes as well as any and
  33.  *  all ideas to me. This software is going to be maintained and
  34.  *  enhanced as deemed necessary by the community.
  35.  *
  36.  *
  37.  *             Philippe Jounin (ph.jounin@computer.org)
  38.  */
  39.  
  40.  
  41. void Tcp4uLog (unsigned uLevel, LPCSTR szText, ...);
  42.  
  43.  
  44. /* internal dimensions                  */
  45. #define  HOST_LENGTH      256
  46. #define  SERVICE_LENGTH   64
  47. #define  FILE_LENGTH      512
  48.  
  49. /* les symboles des sump */
  50. #define  DUMP4U_SENT    ">"
  51. #define  DUMP4U_RCVD    "<"
  52.  
  53. /* internal functions                    */
  54. /* these interface are subject to change */
  55. int    Tcp4uAtoi (LPCSTR p);
  56. long   Tcp4uAtol (LPCSTR p);
  57. int    Tcp4uStrncasecmp (LPCSTR s1, LPCSTR s2, size_t n);
  58. LPSTR  Tcp4uStrIStr (LPCSTR s1, LPCSTR s2);
  59. struct in_addr Tcp4uGetIPAddr (LPCSTR szHost);
  60.  
  61. /* Tcp4u.c internal cals */
  62. int InternalTcpSend (SOCKET s, LPCSTR szBuf, unsigned uBufSize,
  63.                      BOOL bHighPriority, HFILE hLogFile);
  64. int InternalTcpRecv (SOCKET s, LPSTR szBuf, unsigned uBufSize, 
  65.                      unsigned uTimeOut, HFILE hLogFile);
  66. int InternalTcpRecvUntilStr (SOCKET s, LPSTR szBuf,unsigned far *lpBufSize,
  67.                              LPSTR szStop, unsigned uStopSize, BOOL bCaseSensitive,
  68.                              unsigned uTimeOut, HFILE hLogFile);
  69. /* tn4u.c internal cals */
  70. int InternalTnReadLine (SOCKET s,LPSTR szBuf,UINT uBufSize,UINT uTimeOut,
  71.                         HFILE hf);
  72. /* Udp4u.c internal cals */
  73. int InternalUdpRecv (LPUDPSOCK pUdp,  LPSTR sData, int nDataSize, 
  74.                      unsigned uTimeOut, HFILE hLogFile);
  75. int InternalUdpSend (LPUDPSOCK Udp,LPCSTR sData, int nDataSize,
  76.                      BOOL   bHighPriority, HFILE hLogFile);
  77.  
  78.