예제 #1
0
        public UserInfo(IrcDaemon ircDaemon, Socket socket, string host, bool isAcceptSocket, bool passAccepted)
            : base(ircDaemon)
        {
            IsService    = false;
            Registered   = false;
            PassAccepted = passAccepted;
            Host         = host;
            Created      = DateTime.Now;

            IsAcceptSocket = isAcceptSocket;
            Socket         = socket;

            Modes = new UserModeList(ircDaemon);
        }
예제 #2
0
        public UserInfo(IrcDaemon ircDaemon, Socket socket, string host, bool isAcceptSocket, bool passAccepted)
            : base(ircDaemon)
        {
            IsService = false;
            Registered = false;
            PassAccepted = passAccepted;
            Host = host;
            Created = DateTime.Now;

            this.isAcceptSocket = isAcceptSocket;
            this.socket = socket;

            modes = new UserModeList(ircDaemon);
        }
예제 #3
0
 protected InfoBase(IrcDaemon ircDaemon)
 {
     this.ircDaemon = ircDaemon;
 }
예제 #4
0
 public ServerInfo(IrcDaemon ircDaemon)
     : base(ircDaemon)
 {
 }
예제 #5
0
 public RehashEventArgs(IrcDaemon ircDaemon, UserInfo userInfo)
 {
     this.ircDaemon = ircDaemon;
     this.userInfo  = userInfo;
 }
예제 #6
0
 public RehashEventArgs(IrcDaemon ircDaemon, UserInfo userInfo)
 {
     this.ircDaemon = ircDaemon;
     this.userInfo = userInfo;
 }
예제 #7
0
 protected InfoBase(IrcDaemon ircDaemon)
 {
     this.ircDaemon = ircDaemon;
 }
예제 #8
0
 public ServerStats(IrcDaemon ircDaemon)
 {
     this.ircDaemon = ircDaemon;
 }
예제 #9
0
 public RehashEventArgs(IrcDaemon ircDaemon, UserInfo userInfo)
 {
     IrcDaemon = ircDaemon;
     UserInfo  = userInfo;
 }
예제 #10
0
 public ServerInfo(IrcDaemon ircDaemon)
     : base(ircDaemon)
 {
 }
예제 #11
0
        public static void Start()
        {
            var settings = new Settings();
            var ircDaemon = new IrcDaemon(settings.GetIrcMode());
            settings.SetDaemon(ircDaemon);
            settings.LoadSettings();

            if (blocking)
            {
                ircDaemon.Start();
            }
            else {
                ircDaemon.ServerRehash += ServerRehash;

                var serverThread = new Thread(ircDaemon.Start)
                {
                    IsBackground = false,
                    Name = "serverThread-1"
                };

                serverThread.Start();
            }
        }
예제 #12
0
 public RehashEventArgs(IrcDaemon ircDaemon, UserInfo userInfo)
 {
     IrcDaemon = ircDaemon;
     UserInfo = userInfo;
 }
예제 #13
0
 public ServerStats(IrcDaemon ircDaemon)
 {
     this.ircDaemon = ircDaemon;
 }