How can i track that a user is connected to the internet now.

Like icq98 when a user connects to the internet it automatically starts or

wakeup to track the incomming message for the user.


Do i've to check the status of modem, if yes how can i check this.


Thanks,

Zain