Running the server

This will brief you on how to run the server

You can find these methods in


The function
Airtower.startConnection()
starts the server and initiates the listening process. It will retry 10 times, if the server is not successfully initiated. After 10 retries it will close the Project. You have to manually capture the code-break process.
Below is an example of running the server.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// Times
using Server.Utils.Events;
using Server.net;
using Server.Log;
using Client;

public class TestServer
{
   public static void Main()
   {
      Airtower loginServer = new Airtower("127.0.0.1", 6112); // You can auto-config here
      loginServer.IP = "new IP";
      loginServer.Name = "Times Test v2"; // You can access and edit it out-the class too!

      // Run the server
      loginServer.startConnection();
   }
}

Next move on to Accepting the clients

check 1
Server
check 1
Configuration
check 2
Running the server
check 5
Extending penguin-socket class Coming soon!