B4J Question Thinking about to switch from vb.net to B4J - Question about socket

Michael K. Therkildsen

Member
Licensed User
A have a running app in vb.net that are communicating with nedap, I made this in vb.net but are now thinking about to remake the lot in B4J.

To start a little faster is there anybody that have a running example for a Socket client using UFT8 where it's posible to send commands to a socket server a listen for anwer.

Can any body help with a small example. Sorry for my english
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Two projects are attached: EchoServer and EchoClient.

Open two instances of B4J, run EchoServer in Release mode and run EchoClient in debug or release mode. The client connects to the server which echos the client messages.

This example is not based on prefix mode. It is based on AsyncStreamsText which builds messages based on the end of line character(s). It is better to use prefix mode, however it is only possible if you implement both sides in B4X.
 

Attachments

  • EchoServer.zip
    1.7 KB · Views: 288
  • EchoClient.zip
    3 KB · Views: 302
Upvote 0
Top