Android Question Is there a Winsock1 control similar to VB6.0 in B4A?

aeric

Expert
Licensed User
Longtime User
I think you may need to build a server or use mqtt protocol

 
Upvote 0

bskotu555

Member
Library:
B4A = NetWork
B4J = JNetWork


sample:
’listening
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
If Winsock1.State <> sckClosed Then Winsock1.Close
Winsock1.Accept requestID
End Sub
‘get
Dim strData As String
Winsock1.GetData strData

In VB6.0, I used Winsock components to implement listening and content retrieval. I am not sure if there are similar components or related cases to use in B4A for reference.
 
Upvote 0

Scantech

Well-Known Member
Licensed User
Longtime User
B4X:
        Client.Initialize("Client")
        Client.Connect("192.168.0.10", 35000, 10000)
Most OBD wifi (if thats what you are implying) uses the above ip address and port number.

In Client success connection add
B4X:
AStreams.Initialize(Client.InputStream, Client.OutputStream, "AStreams")
 
Last edited:
Upvote 0

TILogistic

Expert
Licensed User
Longtime User

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…