public SimpleWebServer(Action <string> MessageReceivedCallback, int port)
 {
     this.utlititymethods         = new UtitlityMethods();
     this.MessageReceivedCallback = MessageReceivedCallback;
     disconnect = false;
     runServer  = new Thread(new ThreadStart(() => ServerLogic(port)));
 }
 public SimpleWebServer()
 {
     this.utlititymethods         = new UtitlityMethods();
     this.MessageReceivedCallback = null;
     disconnect = false;
     runServer  = new Thread(new ThreadStart(() => ServerLogic(8080)));
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
        }