session.go 390 B

12345678910111213141516171819202122232425
  1. package smb
  2. import (
  3. "log"
  4. "net"
  5. )
  6. type session struct {
  7. IsSigningRequired bool
  8. IsAuthenticated bool
  9. debug bool
  10. securityMode uint16
  11. sessionID uint64
  12. conn net.Conn
  13. dialect uint16
  14. }
  15. func (s *session) Debug(msg string, err error) {
  16. if s.debug {
  17. log.Println("[ DEBUG ] ", msg)
  18. if err != nil {
  19. // debug.PrintStack()
  20. }
  21. }
  22. }