C#C
C#4y ago
koopa

Disconnect a client from a TCPServer csharp

Hi - I have a basic client server chat room model which I'm working on for a school project. I'm trying to program a /kick feature to disconnect a client from the server, however TCPClient.Close() and TCPClient.Client.Disconnect() do not seem to be working - as in the client thinks that it is still connected, not sure whether I just need to update the client that it is not connected or whether I should use a different disconnect method.
Was this page helpful?