public SimpleAsyncClient(IPEndPoint ipEndPoint) { _ipEndPoint = ipEndPoint; var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); _socketCapsule = new SocketCapsule(socket); _socketCapsule.NewMessageReceived += SocketCapsuleNewMessageReceived; }
public SimpleConnectedSocket(Socket socket) { _socketCapsule = new SocketCapsule(socket); }