A problem regarding EOT
-
Dear friends, I am a POS developer, my question is im send some request to some different server then that person send me to resonse with some EOT i want get this response without this EOT how can i do this using C..please help me. thank you.
-
Dear friends, I am a POS developer, my question is im send some request to some different server then that person send me to resonse with some EOT i want get this response without this EOT how can i do this using C..please help me. thank you.
-
You can't, if the message contains that character or sequence then you need to deal with it.
Veni, vidi, abiit domum
how can i deal with that..
-
how can i deal with that..
-
How can you deal with what? Remember, we cannot see your code or read your mind, so we have no idea what the problem may be unless you provide clear details.
Veni, vidi, abiit domum
yes im sorry... server_send_packet(sockt,DownCofig_PARAM_OBJ.transmitData); //Think some third party give me to some library and i want to send my data to that library then that //library some data called "transmitData" .Then i send this data to the server. server_rcv_packet(sockt,rcv,300,0); //then server response i take to this rcv buffer and send to library.So this rcv data has EOT(0x04) i want read this rcv buffer data until this EOT so how can i do this.
-
yes im sorry... server_send_packet(sockt,DownCofig_PARAM_OBJ.transmitData); //Think some third party give me to some library and i want to send my data to that library then that //library some data called "transmitData" .Then i send this data to the server. server_rcv_packet(sockt,rcv,300,0); //then server response i take to this rcv buffer and send to library.So this rcv data has EOT(0x04) i want read this rcv buffer data until this EOT so how can i do this.
-
You should use a loop to keep calling
recv
until there is no more data, or the EOT character has been received. You can then remove the EOT character from the buffer and send the remainder of the message to the library.Veni, vidi, abiit domum
Dear friend don't get mis understand me iam new to this ....i already try to your solution,but i did that rcv buffer length ,how can i identify this EOT character i mean if there is some standard way or something
-
Dear friend don't get mis understand me iam new to this ....i already try to your solution,but i did that rcv buffer length ,how can i identify this EOT character i mean if there is some standard way or something
-
Thank u very much my dear friend really appreciate your help.