public override bool SignalInputData(InputStream inputStream, IPEndPoint address) { inputStream.CopyPartTo(Buffer, (int)inputStream.AvaliableByteCounts); if (!Connections.ContainsKey(address)) { Connections[address] = new Middle2ServerRTMFPProtocol { Application = Application, LocalEndPoint = address, ServerEndPoint = new IPEndPoint(IPAddress.Parse("202.109.143.196"), 19352) }; } Connections[address].EnqueueForOutbound(Buffer); return(true); }
public override bool SignalInputData(InputStream inputStream, IPEndPoint address) { inputStream.CopyPartTo(Buffer,(int) inputStream.AvaliableByteCounts); if (!Connections.ContainsKey(address)) { Connections[address] = new Middle2ServerRTMFPProtocol { Application = Application, LocalEndPoint = address, ServerEndPoint = new IPEndPoint(IPAddress.Parse("202.109.143.196"), 19352) }; } Connections[address].EnqueueForOutbound(Buffer); return true; }