The B4ppc is the Client Side
Hi Erel,
1) I think this Platform is just Awesome!!! It works really nice!!! I wrote some nice weight and balance programs... I just need need to learn more about the librarys and objects... I was a C programmer but never got into C++ thats probably my biggest problem... Any advice will be greatly appreciated or would you recommend a book...
2) Also how can you get a description on the librarys or library help...
3) I'm writing the Client Side... So it must parse the character stream for the Name: and Password:....
4) I tried to get the a look at the Netdemo.zip but when I click on it it is a dead link... I looked at ChitChat so I got it going sorta... Could you make NetDemo.zip available for me?
5) I can't seem to find a description on 'Stream' 'Client' objects and operations... Searching help did not help... The problem is that I need to sift through the buffer character by characters for name: and password: on a character level instead of a string level just incase the item name: or Password: comes in split across two buffer reads... I got it going with this StrIndexOf:
if client.DataAvailable = True Then
Dim bufferbits(8192) As byte
count = stream.ReadBytes(bufferbits(),8192)
buffer = bit.BytesToString(bufferbits(),0,count)
:
:
:
' State = 1 (Look for Name
if found then reply with Username'
If State = 1 Then
If -1 < StrIndexOf (buffer, "e:",0) Then
stream.WriteBytes (stream.StringToBytes(Uname.text & Chr(10)))
State = 2 'Change State Next State = 2 (Look for Password
'
End If
End If
6) I can send you the code if you prefer... But you will have to tell me how to attach it...
Thanks again,
Andy