This project is read-only.
1
Vote

OnConnected event prematurely raised in NetBaseClient.Connect? (56676)

description

The OnConnected event is raised before the stream has been created. I think it is a reasonable assumption that the client and it's stream should be ready to be read and written to when OnConnected is raised so this should occur after the stream has been created. However, if the intent is to have an event that for the socket's state (Well, TcpClient at least) then perhaps a new event should be created for when the client (stream) is ready?
 
Assuming the intent is for an event to trigger when the client is ready to be read and written to, I've attached a fix (diff patch file) for NetBaseClient.cs

file attachments

comments