Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteant committed Sep 28, 2020
1 parent 8ab3a0b commit dadb6d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/DotNetty.NetUV/Handles/ServerStream (Of T).cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ namespace DotNetty.NetUV.Handles
public abstract class ServerStream<THandle> : StreamHandle<THandle>, IInternalServerStream
where THandle : ServerStream<THandle>
{
internal const int DefaultBacklog = ServerStream.DefaultBacklog;

internal static readonly uv_watcher_cb ConnectionCallback = (h, s) => OnConnectionCallback(h, s);

private Action<THandle, Exception> _connectionHandler;
Expand All @@ -37,7 +39,7 @@ internal ServerStream(

internal abstract IInternalStreamHandle NewStream();

public void StreamListen(Action<THandle, Exception> onConnection, int backlog = ServerStream.DefaultBacklog)
public void StreamListen(Action<THandle, Exception> onConnection, int backlog = DefaultBacklog)
{
if (onConnection is null) { ThrowHelper.ThrowArgumentNullException(ExceptionArgument.onConnection); }
if ((uint)(backlog - 1) > SharedConstants.TooBigOrNegative) { ThrowHelper.ThrowArgumentException_Positive(backlog, ExceptionArgument.backlog); }
Expand Down
1 change: 0 additions & 1 deletion src/DotNetty.NetUV/Handles/Tcp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace DotNetty.NetUV.Handles
{
using System;
using System.Net;
using DotNetty.Buffers;
using DotNetty.NetUV.Native;

public sealed class Tcp : ServerStream<Tcp>
Expand Down

0 comments on commit dadb6d1

Please sign in to comment.