public void Start()
 {
     try {
         _serverSocket.Start();
     } catch (Exception ex) {
         throw ex;
     }
 }
Пример #2
0
 public void Start()
 {
     try {
         _serverSocket.Start();
     } catch (Exception ex) {
         if (SocketError != null)
         {
             SocketError(ex);
         }
     }
 }
Пример #3
0
 /// <summary>
 /// Entry Point
 /// </summary>
 public UsersObject()
 {
     try {
         _users = new List<UserObject>(); // Initialise new list of users for in memory operations
         _server = new AsyncServer(5999); // Listen on the port I will alwyas listen on
         _server.ConnectionAccept += _server_ConnectionAccept; // Wire up event
         _server.Start(); // Begin listening for new connections immediately
     } catch (Exception ex) {
         if (ProcessError != null) {
             ProcessError(ex, "UsersObject");
         }
     }
 }
Пример #4
0
 public Users()
 {
     _users = new List<User>();
     _server.ConnectionAccept += _server_ConnectionAccept;
     _server = new AsyncServer(5999);
     _server.Start();
 }