wodPop3Server ActiveX Control - Connecting Method
      
 

Description

Called when new user is connecting to server.


Return Type

None  


Syntax

object.Connecting Owner, User, Action



The Connecting Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodPop3Notify.
Owner  A wodPop3ServerCom object. Reference to wodPop3ServerCom instance that called this callback method.
User  A Pop3User object. Reference to user who wants to connect to wodPop3Server.
Action  A Pop3Actions enumeration, as described in settings. Return value you should set to either Allow or Deny to determine if user is allowed to attempt to login.

Settings

The settings for Action are:

Constant Value Description
 Deny 0 Deny execution of the action.
 Allow 1 Allow to execute action.

Remarks

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

At the time this notification method is called, no commands are entered by user. Only his Hostname and TimeConnected properties are known to wodPop3Server. Server will call this notification method so you can decide if you will let user access your server at all.

This is very handy if you want to perform IP filter checking on your server, thus allowing only specific range of IP addresses to access server. After you check user's Hostname property, set Action = Allow to let him continue using the server, or Action = Deny to close connection without any response made by your server. You can prevent potential hackers or attackers this way.