private void ReceiveTCP(object sender, byte[] data, IPEndPoint source) { PackageInterface package = Adapter.CreatePackageFromNetworkData(data); if (package == null) { return; } if (!CheckForResponse(package)) { TcpPackages.Write(package); } }
public PackageInterface ReadTCP() { return(TcpPackages.Read()); }