From 70ac466680fb344931368313ec2a677941da535c Mon Sep 17 00:00:00 2001 From: Like-all Date: Sat, 31 Jan 2015 16:00:30 +0200 Subject: [PATCH] xmpp-ping added --- xmpp_ping.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 xmpp_ping.go diff --git a/xmpp_ping.go b/xmpp_ping.go new file mode 100644 index 0000000..88b07cc --- /dev/null +++ b/xmpp_ping.go @@ -0,0 +1,19 @@ +package xmpp + +import ( + "fmt" +) + +func (c* Client) PingC2S(jid, server string) { + fmt.Fprintf(c.conn, "\n" + + "\n" + + "", + xmlEscape(jid), xmlEscape(server)) +} + +func (c* Client) PingS2S(fromServer, toServer string) { + fmt.Fprintf(c.conn, "\n" + + "\n" + + "", + xmlEscape(fromServer), xmlEscape(toServer)) +}