Back to product page

UserConnected callback method


Called when user connects to wodWebServer

Syntax

  • Basic
object.UserConnected (Owner, User, Action)
The UserConnected(object,Owner,User,Action) syntax has these parts:
objectAn expression evaluating to an object of type IwodWebNotify
OwnerAn expression evaluating to an object of type wodWebServer
UserWebUser object. Reference to user that called CGI script.
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

NOTE: This method is called only if you implemented IwodWebNotify interface in your application, and wodWeb1.Notification property has received reference to instance of your implementation.

UserConnected notification method is called 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