Skip to content

Commit

Permalink
Connect vs ConnectAsync behavior chronoxor#45
Browse files Browse the repository at this point in the history
  • Loading branch information
chronoxor committed Feb 27, 2020
1 parent 59ef1ce commit d37e1d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/NetCoreServer/SslClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ public LingerOption OptionLingerState
/// <summary>
/// Connect the client (synchronous)
/// </summary>
/// <remarks>
/// Please note that synchronous connect will not receive data automatically!
/// You should use Receive() or ReceiveAsync() methods manually after successful connection.
/// </remarks>
/// <returns>'true' if the client was successfully connected, 'false' if the client failed to connect</returns>
public virtual bool Connect()
{
Expand Down
4 changes: 4 additions & 0 deletions source/NetCoreServer/TcpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ public LingerOption OptionLingerState
/// <summary>
/// Connect the client (synchronous)
/// </summary>
/// <remarks>
/// Please note that synchronous connect will not receive data automatically!
/// You should use Receive() or ReceiveAsync() methods manually after successful connection.
/// </remarks>
/// <returns>'true' if the client was successfully connected, 'false' if the client failed to connect</returns>
public virtual bool Connect()
{
Expand Down

0 comments on commit d37e1d0

Please sign in to comment.