public void Start() { readBannerBytes = 0; bannerLength = 2; readFrameBytes = 0; frameBodyLength = 0; Banner = new MinicapBanner(); client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); client.Connect("localhost", 1313); client.BeginReceive(clientBuffer, 0, clientBuffer.Length, SocketFlags.None, OnReceive, this); }
public MinicapClient() { Banner = new MinicapBanner(); }