Hi ALL !
i have a problem with network V1.51 , I always Successful ,no matter the IP address !?
i cheked in 4.3 and 5.0 same thing !
i have a problem with network V1.51 , I always Successful ,no matter the IP address !?
i cheked in 4.3 and 5.0 same thing !
B4X:
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private so As Socket ' Network Lib v1.51
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module
Private ConnectButton As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
ConnectButton.Initialize("ConnectButton")
ConnectButton.Text="Connect"
Activity.AddView(ConnectButton,20dip,20dip,200dip,50dip)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub so_Connected (Successful As Boolean)
If Successful Then
Log("Connection Successful")
Else
Log("Connection Failed")
Log(LastException)
End If
End Sub
Sub ConnectButton_Click
so.Initialize("so")
so.Connect("192.168.1.1",502, 0)
End Sub