diff options
author | Wim <wim@42.be> | 2016-11-26 14:44:33 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-26 14:44:33 +0100 |
commit | 4ef32103cae4fe7e4908a8909f83efbf3c071651 (patch) | |
tree | 42d647ee1355488376e5d8d33cdbb336f44a6d7c /vendor/github.com/mattn/go-xmpp/xmpp_ping.go | |
parent | e4ec27c5e24b46d289af00f6848ba2c65966eae2 (diff) | |
download | matterbridge-msglm-4ef32103cae4fe7e4908a8909f83efbf3c071651.tar.gz matterbridge-msglm-4ef32103cae4fe7e4908a8909f83efbf3c071651.tar.bz2 matterbridge-msglm-4ef32103cae4fe7e4908a8909f83efbf3c071651.zip |
Update xmpp vendor
Diffstat (limited to 'vendor/github.com/mattn/go-xmpp/xmpp_ping.go')
-rw-r--r-- | vendor/github.com/mattn/go-xmpp/xmpp_ping.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/mattn/go-xmpp/xmpp_ping.go b/vendor/github.com/mattn/go-xmpp/xmpp_ping.go index 26d056e9..39269d80 100644 --- a/vendor/github.com/mattn/go-xmpp/xmpp_ping.go +++ b/vendor/github.com/mattn/go-xmpp/xmpp_ping.go @@ -25,3 +25,9 @@ func (c *Client) PingS2S(fromServer, toServer string) error { xmlEscape(fromServer), xmlEscape(toServer)) return err } + +func (c *Client) SendResultPing(id, toServer string) error { + _, err := fmt.Fprintf(c.conn, "<iq type='result' to='%s' id='%s'/>", + xmlEscape(toServer), xmlEscape(id)) + return err +} |