|
MessengerYouLike
|
|
This Event Fires when Port is Opened for File Transfer
public event OnFilePortOpened;
Public Event OnFilePortOpened(ByVal IP As String, ByVal Port As String)
|
Return Values |
Description |
|
ByVal IP As String |
IP Address of The File Sending Client |
|
ByVal Port As String |
Listening Port for File Transfer |
When user Accepts the File Transfer Request IMSDK.IMClient.BeginFileRequestAccepted then this Port is Opened and this event is fired
[Visual Basic] 'Create a new IMClient Dim MC as new IMSDK.IMClient 'Call the Listen Sub MC.Listen() 'Now Try to login MC.BeginLogin(TxtUsername.Text,TxtPassword.Text) 'if username and password is valid then Private Sub MC_OnLoggedin(ByVal UserObject As IMSDK.User) Handles MC.OnLoggedin Debug.WriteLine("Username logged in : " & MCUser.Username & " , " & MCUser.Password) End Sub 'if username or password is invalid then Private Sub MC_OnUsernameOrPasswordInvalid(ByVal Username As String, ByVal Password As String) Handles MC.OnUsernameOrPasswordInvalid Debug.WriteLine("Username password invalid : " & Username & " , " & Password) End Sub 'Send File MC.BeginSendFile(TxtFilePath.Text, TxtFriendUsername.Text) 'if file transfer request accepted Private Sub MC_OnFilePortOpened(ByVal IP As String, ByVal Port As String) Handles MC.OnFilePortOpened Debug.WriteLine("On File Port Opened : " & IP & " - " & Port) End Sub