The easy to use and full featured Irc Bot everyone is talking about!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IRCService.cs 767B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Net;
  7. namespace Combot
  8. {
  9. internal class IRCService
  10. {
  11. private TCPInterface _tcp;
  12. internal IRCService()
  13. {
  14. _tcp = new TCPInterface();
  15. }
  16. internal bool Connect(IPAddress IP, int port, int readTimeout, int allowedFailedCount = 0)
  17. {
  18. bool result = false;
  19. if (!_tcp.Connected)
  20. {
  21. result = _tcp.Connect(IP, port, readTimeout, allowedFailedCount);
  22. }
  23. return result;
  24. }
  25. internal bool Disconnect()
  26. {
  27. bool result = false;
  28. return result;
  29. }
  30. }
  31. }