CUDLR.Server.Awake C# (CSharp) Method

Awake() public method

public Awake ( ) : void
return void
        public virtual void Awake()
        {
            mainThread = Thread.CurrentThread;
              fileRoot = Path.Combine(Application.streamingAssetsPath, "CUDLR");

              // Start server
              Debug.Log("Starting CUDLR Server on port : " + Port);
              listener = new HttpListener();
              listener.Prefixes.Add("http://*:"+Port+"/");
              listener.Start();
              listener.BeginGetContext(ListenerCallback, null);

              StartCoroutine(HandleRequests());
        }