]> git.ipfire.org Git - thirdparty/squid.git/blame - lib/rfcnb/rfcnb.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / lib / rfcnb / rfcnb.h
CommitLineData
462566c5 1/*
77b1029d 2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
462566c5
AJ
3 *
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.
7 */
8
7c16470c 9/* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
6ca34f6f
HN
10 *
11 * Version 1.0
12 * RFCNB Defines
13 *
14 * Copyright (C) Richard Sharpe 1996
6ca34f6f 15 */
7c16470c
AJ
16
17/*
6ca34f6f
HN
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.
22 *
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.
27 *
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.
31 */
7c16470c
AJ
32
33#ifndef _RFCNB_RFCNB_H
34#define _RFCNB_RFCNB_H
35
36/* Error responses */
37
7c16470c 38#include "rfcnb/rfcnb-common.h"
9864722f 39#include "rfcnb/rfcnb-error.h"
7c16470c
AJ
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
f53969cc 45/* Defines we need */
7c16470c
AJ
46
47#define RFCNB_Default_Port 139
48
f53969cc 49struct RFCNB_Con;
7c16470c 50
f53969cc 51/* Definition of routines we define */
7c16470c 52
f53969cc
SM
53void *RFCNB_Call(char *Called_Name, char *Calling_Name, char *Called_Address,
54 int port);
7c16470c 55
f53969cc 56int RFCNB_Send(struct RFCNB_Con *Con_Handle, struct RFCNB_Pkt *udata, int Length);
7c16470c 57
f53969cc 58int RFCNB_Recv(void *Con_Handle, struct RFCNB_Pkt *Data, int Length);
7c16470c 59
f53969cc 60int RFCNB_Hangup(struct RFCNB_Con *con_Handle);
7c16470c 61
f53969cc 62void *RFCNB_Listen(void);
7c16470c 63
f53969cc 64void RFCNB_Get_Error(char *buffer, int buf_len);
7c16470c 65
f53969cc 66int RFCNB_Get_Last_Error(void);
7c16470c 67
f53969cc 68void RFCNB_Free_Pkt(struct RFCNB_Pkt *pkt);
7c16470c 69
f53969cc 70int RFCNB_Set_Sock_NoDelay(struct RFCNB_Con *con_Handle, int yn);
7c16470c 71
f53969cc 72struct RFCNB_Pkt *RFCNB_Alloc_Pkt(int n);
7c16470c
AJ
73
74#ifdef __cplusplus
75}
6ca34f6f 76
7c16470c 77#endif
6ca34f6f 78#endif /* _RFCNB_RFCNB_H */
f53969cc 79