Android Question TCPClient and Astreams with prefix

Rusty

Well-Known Member
Licensed User
Longtime User
I've tried the example of the FileTransfer, including the sample C# code and it works well.
However, I need to use the C# code as the server and the tablets as the Clients.
In merely "reversing" the roles, I'm having difficulty.
Is there a way to have the PC be the server and the tablet be the client and still use the astreams with prefix capabilities?
I can get the tablet to send one message and then no further communications occur either way.
Thanks,
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks Erel,
Unfortunately, the code that is supporting the streams is thousands of lines and would be quite an effort to convert.
Have you seen the environment where the Android transmits once or twice, but can not "receive" from the PC? If so, what have been the causes and potential solutions?
Rusty
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
hmmm... Is there a way the prefix value can become errant?
If i transmit NULL values, would that cause the issue?
Thanks
Rusty
I believe I have found this issue...originally, the PC application was sending "handshaking" protocol and in my conversion to prefix mode, I failed to maintain this protocol. Thus, the spurious communications, thanks for your help....
 
Last edited:
Upvote 0
Top