1.Socket服务端与客户端通话 1服务端 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace tSocket { class Program { byte[] bytes = new byte[1024];
public class MasterServer : SuperSocket.SocketBase.AppServer<MasterSession> { } public class MasterSession: SuperSocket.SocketBase.AppSession<MasterSession> { protected override void HandleUnknownRequest(StringRequestInfo requestInfo) { Send(C