core/s2smanager.lua

changeset 265
1f851b6f5e11
parent 260
182f0c895676
child 266
34b053c001f8
equal deleted inserted replaced
264:a296b61baad8 265:1f851b6f5e11
25 local dialback_secret = "This is very secret!!! Ha!"; 25 local dialback_secret = "This is very secret!!! Ha!";
26 26
27 local srvmap = { ["gmail.com"] = "talk.google.com", ["identi.ca"] = "longlance.controlezvous.ca", ["cdr.se"] = "jabber.cdr.se" }; 27 local srvmap = { ["gmail.com"] = "talk.google.com", ["identi.ca"] = "longlance.controlezvous.ca", ["cdr.se"] = "jabber.cdr.se" };
28 28
29 module "s2smanager" 29 module "s2smanager"
30
31 function connect_host(from_host, to_host)
32 end
33 30
34 function send_to_host(from_host, to_host, data) 31 function send_to_host(from_host, to_host, data)
35 local host = hosts[from_host].s2sout[to_host]; 32 local host = hosts[from_host].s2sout[to_host];
36 if host then 33 if host then
37 -- We have a connection to this host already 34 -- We have a connection to this host already
65 -- Store in buffer 62 -- Store in buffer
66 host_session.sendq = { data }; 63 host_session.sendq = { data };
67 end 64 end
68 end 65 end
69 66
70 function disconnect_host(host)
71
72 end
73
74 local open_sessions = 0; 67 local open_sessions = 0;
75 68
76 function new_incoming(conn) 69 function new_incoming(conn)
77 local session = { conn = conn, type = "s2sin_unauthed", direction = "incoming" }; 70 local session = { conn = conn, type = "s2sin_unauthed", direction = "incoming" };
78 if true then 71 if true then

mercurial