PDA

View Full Version : Connecting secret password


mainegate
03-18-2009, 07:17 PM
I have this working to disconnect a person who is trying to connect without the secret password. However, is there a way I can rejectConnection before even accepting the connection?

The only way I can get it to work is if I accept the connection and then check the secret password passed from the client to the server and then disconnect if not correct.

However, can I just check this before accepting the connection...rather than disconnecting...I don't want someone to connect if they don't know the secret password.