Home arrow Forums  
Sunday, 05 February 2012  
Latest Forums
Welcome, Guest
Please Login or Register.    Lost Password?

Message transmission
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Message transmission
#46
Message transmission 2 Years, 4 Months ago Karma: 1
whats the correct way to send the encoded msg over sockets?

Im using stringstream to store the encoded message, then i copy it to an string and send it. In windows i have no problem... but in unix some string stores 'something else' and i recieve a bad msg.
alejoubb
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#47
Re:Message transmission 2 Years, 4 Months ago Karma: 0
Code samples are always a good place to start.
Can you post a sample of what you're doing?
softwareace
Administrator
Posts: 23
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
 
#48
Re:Message transmission 2 Years, 4 Months ago Karma: 1
I've solved somes issues by receiving the 'execute' return value:
Code:

size = _encoder.execute(Mensaje);

I dont know why.... but when i included the '_size = ' the encoding went right.
alejoubb
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/12/17 06:43 By alejoubb.
The administrator has disabled public write access.
 
#49
Re:Message transmission 2 Years, 4 Months ago Karma: 1
I solved the problem. The encodig process was fine... I wasn't sending the whole message with operators like '<<', strlen() or some size()'s, and ASN1VE (asn1 viewer) its not so good after all.

Still, I'll appreciate your thoughts about the code, or the asn structures.

Greetings...
alejoubb
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#50
Re:Message transmission 2 Years, 4 Months ago Karma: 0
So, the problem is in the buffer send, and not, the actual buffer?
softwareace
Administrator
Posts: 23
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
 
Go to topPage: 1
Moderators: softwareace
Top