SnarlNetwork() 공개 메소드

public SnarlNetwork ( string hostName, int hostPort ) : void
hostName string
hostPort int
리턴 void
예제 #1
0
        public bool addClass(string appName, string className, string classTitle)
        {
            string request = "type=SNP#?version=1.0#?action=add_class#?app=" + appName + "#?class=" + className + "#?title=" + classTitle;

            SNP.SnarlNetwork(hostName, hostPort, request);
            return(true);
        }
예제 #2
0
        public bool notify(string appName, string className, string title, string text, string timeout, string icon)
        {
            string request = "type=SNP#?version=1.0#?action=notification#?app=" + appName + "#?class=" + className + "#?title=" + title + "#?text=" + text + "#?timeout=" + timeout + "#?icon=" + icon;

            SNP.SnarlNetwork(hostName, hostPort, request);
            return(true);
        }
예제 #3
0
        public bool unregister(string appName)
        {
            string request = "type=SNP#?version=1.0#?action=unregister#?app=" + appName;

            SNP.SnarlNetwork(hostName, hostPort, request);
            return(true);
        }