Skip to content

[Suggestion] Adding more debug info into TcpWriter. #344

@AuMilliat

Description

@AuMilliat

It could be great to add a Trace.WriteLine() in TcpWriter in the Receive method in case networkStream is null (line 68)

if (this.networkStream != null)
{
    this.networkStream.Write(BitConverter.GetBytes(count), 0, sizeof(int));
    this.networkStream.Write(bytes, offset, count);
}
#if DEBUG
else
{
    Trace.WriteLine($"TcpWriter {name} trying to write while not connected!");
}
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions