rfcnb.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
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 
9 /* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
10  *
11  * Version 1.0
12  * RFCNB Defines
13  *
14  * Copyright (C) Richard Sharpe 1996
15  */
16 
17 /*
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  */
32 
33 #ifndef _RFCNB_RFCNB_H
34 #define _RFCNB_RFCNB_H
35 
36 /* Error responses */
37 
38 #include "rfcnb/rfcnb-common.h"
39 #include "rfcnb/rfcnb-error.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 /* Defines we need */
46 
47 #define RFCNB_Default_Port 139
48 
49 struct RFCNB_Con;
50 
51 /* Definition of routines we define */
52 
53 void *RFCNB_Call(char *Called_Name, char *Calling_Name, char *Called_Address,
54  int port);
55 
56 int RFCNB_Send(struct RFCNB_Con *Con_Handle, struct RFCNB_Pkt *udata, int Length);
57 
58 int RFCNB_Recv(void *Con_Handle, struct RFCNB_Pkt *Data, int Length);
59 
60 int RFCNB_Hangup(struct RFCNB_Con *con_Handle);
61 
62 void *RFCNB_Listen(void);
63 
64 void RFCNB_Get_Error(char *buffer, int buf_len);
65 
66 int RFCNB_Get_Last_Error(void);
67 
68 void RFCNB_Free_Pkt(struct RFCNB_Pkt *pkt);
69 
70 int RFCNB_Set_Sock_NoDelay(struct RFCNB_Con *con_Handle, int yn);
71 
72 struct RFCNB_Pkt *RFCNB_Alloc_Pkt(int n);
73 
74 #ifdef __cplusplus
75 }
76 
77 #endif
78 #endif /* _RFCNB_RFCNB_H */
79 
void RFCNB_Free_Pkt(struct RFCNB_Pkt *pkt)
Definition: rfcnb-util.c:231
int RFCNB_Set_Sock_NoDelay(struct RFCNB_Con *con_Handle, int yn)
struct RFCNB_Pkt * RFCNB_Alloc_Pkt(int n)
Definition: rfcnb-util.c:202
void * RFCNB_Call(char *Called_Name, char *Calling_Name, char *Called_Address, int port)
Definition: session.c:62
static int port
Definition: ldap_backend.cc:69
void * RFCNB_Listen(void)
int RFCNB_Send(struct RFCNB_Con *Con_Handle, struct RFCNB_Pkt *udata, int Length)
Definition: session.c:183
int RFCNB_Get_Last_Error(void)
Definition: session.c:329
int RFCNB_Recv(void *Con_Handle, struct RFCNB_Pkt *Data, int Length)
Definition: session.c:235
void RFCNB_Get_Error(char *buffer, int buf_len)
Definition: session.c:316
int RFCNB_Hangup(struct RFCNB_Con *con_Handle)
Definition: session.c:284

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors