G'day Rick,I need to be able in b4a, use tcp/ip, data storage, sql or propriety i dont care just as lomg as it works, location and the rest I will pick up later.
...propriety protocol.... what is... may be here... we have one way that is compatible with that... ?Now, I have finally managed to flule a cpmmection but when trying many many many code samples to pull the data from the socket buffer, all afails. Even no event for data arrival even after trying so many code snippets.
nah your getting in too deep now.... or too far ahead.Let's take them .... with pieces....
1. the protocol... the way of communication... you thinking ?
2. saving to db... do you need the db ... shared with others or be local like sqlite ?
3. many connections of clients to one server ?
sub process globals
Public aStream As AsyncStreams
Public In() As Byte
Public Out() As Byte
sub activity create
aStream.Initialize(In As java.io.InputStream, Out As java.io.OutputStream, "SockDara")
before "write" anything else... I must say that I was vb6-lover until ...last 2 years... i am using b4a-b4j (b4x) from 2013... but the last two years decided to never touch again vb6 (only some fixes to old apps)... .... B4X has the "BASIC syntax"... not ofcourse the lovely old-user-interface of vb6... but it's a new programming language (not so new - 12 years old) that is updating (to latest technologies arround us) !nah your getting in too deep now.... or too far ahead.
My server and server app been running since 2006 on win server 2000. Thats all good, I need to make a new client to recieve data, modify and send back.
Now, I fluked a tcpip connection, no idea how but the initializesock is in the starter and the rest in Main. the first activity displayed on startup.
I am now stuffing arpound with a async stream trying to initialize, says expected but matches many many samples and the tool; tip text.
This is an incredibly undesirable way of programing these days. I am old school object orientated.
Really struggling with the new ways as I never adopted vb.net
Now once the line with the whole stram stuff is sorted, how does it attacheh to my socket called sock ????
Current line of code is
B4X:sub process globals Public aStream As AsyncStreams Public In() As Byte Public Out() As Byte sub activity create aStream.Initialize(In As java.io.InputStream, Out As java.io.OutputStream, "SockDara")
I really wanna give up
the new client app is for android devices and will certainly check it out- The client you want to create it is for Android or for Windows PC ?
---plz check post #8 --- this example/tutorial will help you a lot !
It will not install onto Samsung A51 or S2 tablet
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?