Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Connection between different socket


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2008, 11:22 AM
Junior Member
 
Join Date: Jun 2008
Location: Reggio Emilia Italy
Posts: 10
Send a message via Skype™ to mircome
Question Connection between different socket

In a conversation between the Windows socket (program written in vb6 ) and the b4ppc socket we have found the following problems.
Configuration is SERVER : (Socket Windows vb6) CLIENT (Socket b4ppc) :
the connection is successful,(even if the client does not waits the ACCEPT from the server. We noticed the same in the CHIT-CHAT sample .)
Data transmission from CLIENT to SERVER is successful. But In the reverse transmission (SERVER to CLIENT) I receive the following error : Unable to read beyond then end of stream
Reply With Quote
  #2 (permalink)  
Old 07-17-2008, 07:23 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

Can you post the code that you use to receive the data?
Reply With Quote
  #3 (permalink)  
Old 07-18-2008, 04:54 PM
Junior Member
 
Join Date: Jun 2008
Location: Reggio Emilia Italy
Posts: 10
Send a message via Skype™ to mircome
Default connectio between sockets

connection ok
sending data from client to server ok
receiving data from server (pc, with program written in VB6) to client (program client.sbp) gives error:Unable to read beyond then end of stream
Attached Files
File Type: sbp Client.sbp (2.3 KB, 9 views)
Reply With Quote
  #4 (permalink)  
Old 07-19-2008, 12:05 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

BinaryFile.ReadString / WriteString methods use a specific .Net protocol.
You should only use these methods when the two sides are Basic4ppc or .Net applications.
In your case you should use the raw ReadBytes / WriteBytes methods to send the data.
You can convert arrays of bytes to strings with Bitwise.BytesToString and Bitwise.StringToBytes.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect ActiveSync connection Lasse Questions & Help Needed 2 07-27-2008 09:51 AM
GPRS / Dialup - Internet Connection TWELVE Questions & Help Needed 9 06-24-2008 07:35 AM
Force Data Connection #777 WM6.0 Jamie Questions & Help Needed 2 03-03-2008 04:47 PM
hold on a GPRS-connection schimanski Questions & Help Needed 3 01-15-2008 05:48 PM


All times are GMT. The time now is 08:34 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0