コード例 #1
0
 public SimpleWebServer(Action <string> MessageReceivedCallback, int port)
 {
     this.utlititymethods         = new UtitlityMethods();
     this.MessageReceivedCallback = MessageReceivedCallback;
     disconnect = false;
     runServer  = new Thread(new ThreadStart(() => ServerLogic(port)));
 }
コード例 #2
0
 public SimpleWebServer()
 {
     this.utlititymethods         = new UtitlityMethods();
     this.MessageReceivedCallback = null;
     disconnect = false;
     runServer  = new Thread(new ThreadStart(() => ServerLogic(8080)));
 }
コード例 #3
0
 public WebSocketHandler()
 {
     isLocal        = SunIRCInit.isLocal;
     irc            = SharedData.irc;
     utilityMethods = new UtitlityMethods();
     SharedData.AddToMessageList("HELLO LITTLE WEEB");
     checkMessagesToSend = new Thread(new ThreadStart(messagesToSend));
     checkMessagesToSend.Start();
 }
コード例 #4
0
        public IrcHandler()
        {
            isLocal         = SunIRCInit.isLocal;
            websocketserver = SharedData.websocketserver;
            irc             = SharedData.irc;

            usefullstuff = new UtitlityMethods();


            Debug.WriteLine("DEBUG-IRCHANDLER: STARTING DOWNLOADER LOGIC");
            downloaderLogicThread = new Thread(new ThreadStart(downloaderLogic));
            downloaderLogicThread.Start();
        }