package xmpp
import (
"fmt"
)
func (c *Client) PingC2S(jid, server string) error {
_, err := fmt.Fprintf(c.conn, "\n"+
"\n"+
"",
xmlEscape(jid), xmlEscape(server))
return err
}
func (c *Client) PingS2S(fromServer, toServer string) error {
_, err := fmt.Fprintf(c.conn, "\n"+
"\n"+
"",
xmlEscape(fromServer), xmlEscape(toServer))
return err
}