TCP allows one side to issue a "FIN", and have the other side respond with some data before ending its side of the connection.
How can I achieve this using .NET's TcpClient
? It appears that I must use Close
to issue a FIN, but after that I can no longer call Client.Receive
since Client
is set to null
by Close
.