NetApplication.cs 424 B

12345678910111213141516171819
  1. using BeetleX.Light;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Net.Sockets;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace PlatformBenchmarks
  9. {
  10. public class HttpNetApplication : ApplicationBase
  11. {
  12. public override bool Connecting(Socket socket, ListenHandler handler)
  13. {
  14. socket.NoDelay = true;
  15. return true;
  16. }
  17. }
  18. }