mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-20 16:15:53 +02:00
Client: Added IsConnected property
This commit is contained in:
parent
921b672437
commit
7d07f65f7f
3 changed files with 24 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2017-2021 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
/* Copyright (C) 2017-2022 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
*
|
||||
* You can redistribute this program and/or modify it under the terms of
|
||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||
|
@ -37,5 +37,10 @@ namespace SMBLibrary.Client
|
|||
{
|
||||
get;
|
||||
}
|
||||
|
||||
bool IsConnected
|
||||
{
|
||||
get;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014-2021 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
/* Copyright (C) 2014-2022 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
*
|
||||
* You can redistribute this program and/or modify it under the terms of
|
||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||
|
@ -674,6 +674,14 @@ namespace SMBLibrary.Client
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsConnected
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_isConnected;
|
||||
}
|
||||
}
|
||||
|
||||
public static void TrySendMessage(Socket socket, SMB1Message message)
|
||||
{
|
||||
SessionMessagePacket packet = new SessionMessagePacket();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2017-2021 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
/* Copyright (C) 2017-2022 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
*
|
||||
* You can redistribute this program and/or modify it under the terms of
|
||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||
|
@ -619,6 +619,14 @@ namespace SMBLibrary.Client
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsConnected
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_isConnected;
|
||||
}
|
||||
}
|
||||
|
||||
public static void TrySendCommand(Socket socket, SMB2Command request, byte[] encryptionKey)
|
||||
{
|
||||
SessionMessagePacket packet = new SessionMessagePacket();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue