Back to product page

UserConnected event


Fires when user connects to wodWebServer.

Syntax

  • Basic
Private Sub object_UserConnected (ByRef User, ByRef Action)
The UserConnected(object,User,Action) syntax has these parts:
objectAn expression evaluating to an object of type wodWebServer
UserWebUser object. Reference to the user who sent the request.
ActionWebActions enumeration. You should set this value to Allow if you want to accept this user, or Deny if you want to close the connection.

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..

Platforms

Windows