mirror of
https://e.coding.net/circlecloud/CTZLauncher.git
synced 2025-11-24 21:36:06 +00:00
Merge branch 'master' of https://git.coding.net/502647092/CTZLauncher.git
This commit is contained in:
@@ -14,7 +14,7 @@ using System.Windows;
|
|||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using System.Windows.Media.Animation;
|
using System.Windows.Media.Animation;
|
||||||
|
|
||||||
namespace CTZLauncher
|
namespace CTZLauncher
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,12 +14,7 @@ namespace MinecraftServerInfo
|
|||||||
using (Socket client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
|
using (Socket client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//01 00
|
client.Connect("four.mengcraft.com", 11133);
|
||||||
//0F 00-2F 09 31 32 37 2E 30 2E 30 2E 31 63 DD 01
|
|
||||||
//client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 1000);
|
|
||||||
//client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, 5000);
|
|
||||||
client.Connect("CityCraft.cn", 25565);
|
|
||||||
//client.Connect("four.mengcraft.com", 11133);
|
|
||||||
Console.WriteLine("开始连接");
|
Console.WriteLine("开始连接");
|
||||||
if (client.Connected)
|
if (client.Connected)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user