Description
-
Fires when user connects to wodWebServer.
Syntax
-
Private Sub
object_UserConnected(User,
Action)
The UserConnected Event syntax has these parts:
| object |
A wodWebServer
object. |
| User |
A WebUser object.
Reference to User who connected to the server. |
| Action |
A WebActions
enumeration, as described in settings. You should set
this value to Allow if you want to accept this
user, or Deny if you want to close the
connection. |
Settings
-
The settings for Action are:
 |
Deny |
0 |
Deny execution of the
action. |
 |
Allow |
1 |
Allow to execute
action. |
Remarks
-
UserConnected event is fired immediately when connection
is established between the client and the wodWebServer, but
before he sent any requests to the server. At this point
you can decide to reject user's connection. You can do
so if, for example, his RemoteIP does
not match list of addresses you plan to allow, or you are
not ready to serve clients, etc..
|