2 Unix SMB/CIFS implementation.
4 structures for WINS replication client library
6 Copyright (C) Andrew Tridgell 2005
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include "librpc/gen_ndr/ndr_nbt.h"
24 #include "librpc/gen_ndr/ndr_winsrepl.h"
27 main context structure for the wins replication client library
30 struct socket_context *sock;
31 struct event_context *event_ctx;
33 /* a queue of requests pending to be sent */
34 struct wrepl_request *send_queue;
36 /* a queue of replies waiting to be received */
37 struct wrepl_request *recv_queue;
42 /* remember is the socket is dead */
46 enum wrepl_request_state {
47 WREPL_REQUEST_SEND = 0,
48 WREPL_REQUEST_RECV = 1,
49 WREPL_REQUEST_DONE = 2,
50 WREPL_REQUEST_ERROR = 3
54 a WINS replication request
56 struct wrepl_request {
57 struct wrepl_request *next, *prev;
58 struct wrepl_socket *wrepl_socket;
60 enum wrepl_request_state state;
67 struct wrepl_packet *packet;
70 void (*fn)(struct wrepl_request *);
79 struct wrepl_associate {
86 pull the partner table
88 struct wrepl_pull_table {
93 uint32_t num_partners;
94 struct wrepl_wins_owner *partners;
99 a full pull replication
101 struct wrepl_pull_names {
104 struct wrepl_wins_owner partner;
109 struct nbt_name name;
110 uint32_t num_addresses;
111 struct wrepl_address {