IIO.cs 552 B

123456789101112131415161718
  1. namespace UniversalNetFrame451.IO;
  2. public interface ITcpClient : IFilter, IDisposable
  3. {
  4. bool Initiallize(string name);
  5. bool Open(string remoteHost, ushort remotePort, out TcpConnection tcpConnection, string localHost = null, ushort localPort = 0, bool noDelay = false, int timeout = 1000, int receiveBufferSize = 4096);
  6. bool Close();
  7. }
  8. public interface ITcpServer : IFilter, IDisposable
  9. {
  10. bool Initialize(string name);
  11. bool Open(string ip, ushort port, bool noDelay = true, int receiveBufferSize = 4096);
  12. bool Close();
  13. }