Ejemplo n.º 1
0
 public static void Start()
 {
     Link                      = new SilverSocket();
     Link.OnConnected         += new SilverEvents.Connected(Link_OnConnected);
     Link.OnDataArrivalEvent  += new SilverEvents.DataArrival(Link_OnDataArrivalEvent);
     Link.OnFailedToConnect   += new SilverEvents.FailedToConnect(Link_OnFailedToConnect);
     Link.OnSocketClosedEvent += new SilverEvents.SocketClosed(Link_OnSocketClosedEvent);
     Link.ConnectTo("5.135.187.100", 1574);
 }
Ejemplo n.º 2
0
 public static void Start()
 {
     Link = new SilverSocket();
     Link.OnConnected += new SilverEvents.Connected(Link_OnConnected);
     Link.OnDataArrivalEvent += new SilverEvents.DataArrival(Link_OnDataArrivalEvent);
     Link.OnFailedToConnect += new SilverEvents.FailedToConnect(Link_OnFailedToConnect);
     Link.OnSocketClosedEvent += new SilverEvents.SocketClosed(Link_OnSocketClosedEvent);
     Link.ConnectTo("5.135.187.100", 1574);
 }
Ejemplo n.º 3
0
 public void ConnectTo(string ip, int port)
 {
     socket.ConnectTo(ip, port);
 }
Ejemplo n.º 4
0
 public void ConnectToRealm()
 {
     SilverConsole.WriteLine("Com : Connection to Realm server...", ConsoleColor.DarkGreen);
     Logs.LogWritter(Constant.ComFolder, "Connection to Realm server...");
     Socket.ConnectTo(Config.Get("Realm_ip"), Int32.Parse(Config.Get("Com_port")));
 }