ConnectionState.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (C) 2017-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Net;
  10. using System.Net.Sockets;
  11. using SMBLibrary.NetBios;
  12. using SMBLibrary.SMB1;
  13. using Utilities;
  14. namespace SMBLibrary.Client
  15. {
  16. public class ConnectionState
  17. {
  18. private Socket m_clientSocket;
  19. private NBTConnectionReceiveBuffer m_receiveBuffer;
  20. public ConnectionState(Socket clientSocket)
  21. {
  22. m_clientSocket = clientSocket;
  23. m_receiveBuffer = new NBTConnectionReceiveBuffer();
  24. }
  25. public Socket ClientSocket
  26. {
  27. get
  28. {
  29. return m_clientSocket;
  30. }
  31. }
  32. public NBTConnectionReceiveBuffer ReceiveBuffer
  33. {
  34. get
  35. {
  36. return m_receiveBuffer;
  37. }
  38. }
  39. }
  40. }