fatcoder
Member
|
Couple of questions about Connection and ConnectionServer
1. Does calling del() on Connection automatically call bye() to send a goodbye message to the server, or does bye() need to be called first before calling del()? There are no header comments for del() to indicate this.
2. How do you reject a client connection with ConnectionServer? For example, if you only want a maximum of two clients and a third client tries to join, how do you reject this third client. It appears as though ConnectionServer just let's everyone into the party?
I have overridden create() and update() in ConnectionServer::Client, but create doesn't seem to let you reject the connection and update seems to be too late (i.e. they are already connected).
(This post was last modified: 03-15-2014 12:35 PM by fatcoder.)
|
|
03-15-2014 11:20 AM |
|