]>
git.ipfire.org Git - thirdparty/squid.git/blob - lib/rfcnb/rfcnb.h
cf0f464f2465c98476f2328b1e38f84125296c86
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
14 * Copyright (C) Richard Sharpe 1996
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
33 #ifndef _RFCNB_RFCNB_H
34 #define _RFCNB_RFCNB_H
38 #include "rfcnb/rfcnb-common.h"
39 #include "rfcnb/rfcnb-error.h"
47 #define RFCNB_Default_Port 139
51 /* Definition of routines we define */
53 void *RFCNB_Call(char *Called_Name
, char *Calling_Name
, char *Called_Address
,
56 int RFCNB_Send(struct RFCNB_Con
*Con_Handle
, struct RFCNB_Pkt
*udata
, int Length
);
58 int RFCNB_Recv(void *Con_Handle
, struct RFCNB_Pkt
*Data
, int Length
);
60 int RFCNB_Hangup(struct RFCNB_Con
*con_Handle
);
62 void *RFCNB_Listen(void);
64 void RFCNB_Get_Error(char *buffer
, int buf_len
);
66 int RFCNB_Get_Last_Error(void);
68 void RFCNB_Free_Pkt(struct RFCNB_Pkt
*pkt
);
70 int RFCNB_Set_Sock_NoDelay(struct RFCNB_Con
*con_Handle
, int yn
);
72 struct RFCNB_Pkt
*RFCNB_Alloc_Pkt(int n
);
78 #endif /* _RFCNB_RFCNB_H */