mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 10:47:48 +02:00
SMB1Client: Add ability to control response timeout
This commit is contained in:
parent
64aca73d8a
commit
8b11c5712c
1 changed files with 6 additions and 1 deletions
|
@ -78,9 +78,14 @@ namespace SMBLibrary.Client
|
|||
}
|
||||
|
||||
public bool Connect(IPAddress serverAddress, SMBTransportType transport, bool forceExtendedSecurity)
|
||||
{
|
||||
return Connect(serverAddress, transport, forceExtendedSecurity, DefaultResponseTimeoutInMilliseconds);
|
||||
}
|
||||
|
||||
public bool Connect(IPAddress serverAddress, SMBTransportType transport, bool forceExtendedSecurity, int responseTimeoutInMilliseconds)
|
||||
{
|
||||
int port = (transport == SMBTransportType.DirectTCPTransport ? DirectTCPPort : NetBiosOverTCPPort);
|
||||
return Connect(serverAddress, transport, port, forceExtendedSecurity, DefaultResponseTimeoutInMilliseconds);
|
||||
return Connect(serverAddress, transport, port, forceExtendedSecurity, responseTimeoutInMilliseconds);
|
||||
}
|
||||
|
||||
internal bool Connect(IPAddress serverAddress, SMBTransportType transport, int port, bool forceExtendedSecurity, int responseTimeoutInMilliseconds)
|
||||
|
|
Loading…
Add table
Reference in a new issue