Skip to content

Commit

Permalink
Network: Add log parameter to SocketConnector constructor.
Browse files Browse the repository at this point in the history
Required for base constructor.

task: #12
  • Loading branch information
lewishazell committed May 23, 2021
1 parent ae1f9c5 commit d56f0b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmpctircd/SocketConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@

namespace cmpctircd {
public class SocketConnector : SocketListener {

private readonly Log log;
public ServerElement ServerInfo;
public bool Connected;
private TcpClient tc;
private NetworkStream stream;


public SocketConnector(IRCd ircd, ServerElement info) : base(ircd, info) {
public SocketConnector(Log log, IRCd ircd, ServerElement info) : base(log, ircd, info) {
this.log = log ?? throw new ArgumentNullException(nameof(log));
ServerInfo = info;
}

Expand Down

0 comments on commit d56f0b1

Please sign in to comment.