Click here to Skip to main content
16,004,602 members

Comments by Member 15992924 (Top 13 by date)

Member 15992924 23-Jun-23 12:58pm View    
It does not end in null, it does not send me the 0 byte.
Member 15992924 23-Jun-23 12:57pm View    
It is also the way, depending on the option that I use, it responds to me in one way or another, but well, the option 1 that parses the data byte by byte in a file that is increasing, so how can I clean that parse_log file for the option 1 that I have put here before I start to write new data in the file? with "w+" in the parse_log with the byte by byte mode it doesn't work because each byte that I receive of information truncates the file because it executes the parse_log X times so for the moment I have it "a+" which is incremental. But I'm interested if I can clean the file with option 1 before it starts to write again data that I receive from the client-socket.

I know that on the client side I would have to send a 0 byte or a NULL to close the buffer, but they are not going to develop anything, they don't change me, I have to adapt because I am in the development phase.
Member 15992924 23-Jun-23 12:13pm View    
hyello update more clear problem and my testing can you see now thank and sorry for my english
Member 15992924 22-Jun-23 13:59pm View    
thank for answer i here other answer with more datas and problem. https://www.codeproject.com/Questions/5363350/Socket-server-C-linux-problem-write-data-receive-l
Member 15992924 22-Jun-23 12:57pm View    
hello I Update in post general datas code and explications thanks. I hope you understand my English, excuse me.