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

            usefullstuff = new UtitlityMethods();

            downloaderLogicThread = new Thread(new ThreadStart(downloaderLogic));
            downloaderLogicThread.Start();
        }