]> git.ipfire.org Git - thirdparty/squid.git/blame - lib/rfcnb/rfcnb.h
Fix the "Report ERR_SECURE_CONNECT_FAIL details" patch (rev 11122)
[thirdparty/squid.git] / lib / rfcnb / rfcnb.h
CommitLineData
7c16470c
AJ
1/* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
2
3 Version 1.0
4 RFCNB Defines
5
6 Copyright (C) Richard Sharpe 1996
7
8*/
9
10/*
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24*/
25
26#ifndef _RFCNB_RFCNB_H
27#define _RFCNB_RFCNB_H
28
29/* Error responses */
30
31#include "rfcnb/rfcnb-error.h"
32#include "rfcnb/rfcnb-common.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
3c96dd46 38 /* Defines we need */
7c16470c
AJ
39
40#define RFCNB_Default_Port 139
41
3c96dd46 42 struct RFCNB_Con;
7c16470c 43
3c96dd46 44 /* Definition of routines we define */
7c16470c 45
3c96dd46
A
46 void *RFCNB_Call(char *Called_Name, char *Calling_Name, char *Called_Address,
47 int port);
7c16470c 48
3c96dd46 49 int RFCNB_Send(struct RFCNB_Con *Con_Handle, struct RFCNB_Pkt *udata, int Length);
7c16470c 50
3c96dd46 51 int RFCNB_Recv(void *Con_Handle, struct RFCNB_Pkt *Data, int Length);
7c16470c 52
3c96dd46 53 int RFCNB_Hangup(struct RFCNB_Con *con_Handle);
7c16470c 54
3c96dd46 55 void *RFCNB_Listen();
7c16470c 56
3c96dd46 57 void RFCNB_Get_Error(char *buffer, int buf_len);
7c16470c 58
3c96dd46 59 int RFCNB_Get_Last_Error(void);
7c16470c 60
3c96dd46 61 void RFCNB_Free_Pkt(struct RFCNB_Pkt *pkt);
7c16470c 62
3c96dd46 63 int RFCNB_Set_Sock_NoDelay(struct RFCNB_Con *con_Handle, int yn);
7c16470c 64
3c96dd46 65 struct RFCNB_Pkt *RFCNB_Alloc_Pkt(int n);
7c16470c
AJ
66
67#ifdef __cplusplus
68}
69#endif
70#endif /* _RFCNB_RFCNB_H */