diff --git a/.vs/ASCKU Projects/DesignTimeBuild/.dtbcache.v2 b/.vs/ASCKU Projects/DesignTimeBuild/.dtbcache.v2 index 9274c02..86af161 100644 Binary files a/.vs/ASCKU Projects/DesignTimeBuild/.dtbcache.v2 and b/.vs/ASCKU Projects/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/ASCKU Projects/v16/.suo b/.vs/ASCKU Projects/v16/.suo index f407f52..c930130 100644 Binary files a/.vs/ASCKU Projects/v16/.suo and b/.vs/ASCKU Projects/v16/.suo differ diff --git a/DataClient/NETClient.cs b/DataClient/NETClient.cs index d52d5ab..628aec5 100644 --- a/DataClient/NETClient.cs +++ b/DataClient/NETClient.cs @@ -11,6 +11,7 @@ namespace DataClient public class NETClient { private Logger log = LogManager.GetCurrentClassLogger(); + private Encoding enc; private string ip = "127.0.0.1"; public string Ip { @@ -45,17 +46,28 @@ namespace DataClient dir_browse = 23, user_flags = 26 } - //Construction + public NETClient() + { + Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); + enc = Encoding.GetEncoding(866); + } public NETClient(string ip, int port) { + Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); + enc = Encoding.GetEncoding(866); Ip = ip; Port = port; } //Work with socket functions + public byte[] CreateCode(uint code, byte[] prefix = null, string val = null, byte[] postfix = null) + { + var res = new List(); + return res.ToArray(); + } //Support functions