Changeset

4562:b163c65379a4

s2sout.lib: Import various util.*
author Kim Alvefur <zash@zash.se>
date Thu, 23 Feb 2012 23:09:09 +0100
parents 4561:429a007f70e8
children 4563:75bff73391fb
files plugins/s2s/s2sout.lib.lua
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/s2s/s2sout.lib.lua	Thu Feb 23 23:04:59 2012 +0100
+++ b/plugins/s2s/s2sout.lib.lua	Thu Feb 23 23:09:09 2012 +0100
@@ -8,12 +8,18 @@
 
 --- Module containing all the logic for connecting to a remote server
 
+local wrapclient = require "net.server".wrapclient;
 local initialize_filters = require "util.filters".initialize;
 local idna_to_ascii = require "util.encodings".idna.to_ascii;
 local add_task = require "util.timer".add_task;
+local new_ip = require "util.ip".new_ip;
+local rfc3484_dest = require "util.rfc3484".destination;
 local socket = require "socket";
+local t_insert, t_sort = table.insert, table.sort;
+local st = require "util.stanza";
 
 local s2s_destroy_session = require "core.s2smanager".destroy_session;
+local s2s_new_outgoing = require "core.s2smanager".new_outgoing;
 
 local s2sout = {};