diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-10-14 12:56:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:42:35 -0500 |
commit | 8aebec1be5bdd768b59d0f0d3a7c59ead9876eb1 (patch) | |
tree | 05f5828be77f9969bd2e4d7e570930f465fbf616 /source4/wrepl_server/wrepl_out_connection.c | |
parent | f197180d8dc7b052af0fcb47a797bdb1c96019e2 (diff) | |
download | samba-8aebec1be5bdd768b59d0f0d3a7c59ead9876eb1.tar.gz samba-8aebec1be5bdd768b59d0f0d3a7c59ead9876eb1.tar.bz2 samba-8aebec1be5bdd768b59d0f0d3a7c59ead9876eb1.zip |
r11043: r10362@SERNOX: metze | 2005-09-20 22:37:28 +0200
repare for pull replication support
metze
(This used to be commit a75402c45f5bcd3b199ad30af06ee34161c5560b)
Diffstat (limited to 'source4/wrepl_server/wrepl_out_connection.c')
-rw-r--r-- | source4/wrepl_server/wrepl_out_connection.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_out_connection.c b/source4/wrepl_server/wrepl_out_connection.c new file mode 100644 index 0000000000..39406c7e2a --- /dev/null +++ b/source4/wrepl_server/wrepl_out_connection.c @@ -0,0 +1,46 @@ +/* + Unix SMB/CIFS implementation. + + WINS Replication server + + Copyright (C) Stefan Metzmacher 2005 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include "includes.h" +#include "dlinklist.h" +#include "lib/events/events.h" +#include "lib/socket/socket.h" +#include "smbd/service_task.h" +#include "smbd/service_stream.h" +#include "lib/messaging/irpc.h" +#include "librpc/gen_ndr/ndr_winsrepl.h" +#include "wrepl_server/wrepl_server.h" +#include "nbt_server/wins/winsdb.h" +#include "ldb/include/ldb.h" + +NTSTATUS wreplsrv_setup_out_connections(struct wreplsrv_service *service) +{ + struct wreplsrv_partner *cur; + + for (cur = service->partners; cur; cur = cur->next) { + if (!(cur->type & WINSREPL_PARTNER_PULL)) continue; + + DEBUG(0,("TODO: pull from: %s\n", cur->address)); + } + + return NT_STATUS_OK; +} |