You are here: MessengerYouLike.IMSDK > IMSDK Reference > IMSDK Namespace > Classes > IMClient Class > IMClient Methods > IMClient.Listen Method
MessengerYouLike
IMClient.Listen Method

This Method Allows the IMClient to Start Listening

C#
public Listen();
Visual Basic
Public Sub Listen()

When this Sub is called the IMClient Starts Listening on the Port Set by the property IMSDK.IMClient.PortToListen 

This sub must be called before calling any other function or sub 

All Server messages and Commands are sent to this Port 

No IMClient is allowed to directly connect to this port 

No IMClient is aware of these Opened Port All messages from any other IMClient are routed through the server to this open port 

Thus making the system more secure

[Visual Basic]
 
'Create a new IMClient
Dim MC as new IMSDK.IMClient
 
'Call the Listen Sub
MC.Listen()

 

Copyright (c) 2007. All rights reserved.