public PeerWireClient(IWireIO io) { Socket = io; _btProtocolExtensions = new List<IProtocolExtension>(); _internalBuffer = new byte[0]; }
public PeerWireClient(IWireIO io) { Socket = io; _btProtocolExtensions = new List <IProtocolExtension>(); _internalBuffer = new byte[0]; }
private void Callback(IAsyncResult ar) { IWireIO s = _socket.EndAccept(ar); if (NewPeer != null) { NewPeer(new PeerWireClient(s)); } _socket.BeginAccept(Callback); }
public PeerWireListener(int port) { _port = port; _socket = new WireIO.Tcp(); }