Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Logging stopped after CFileDialog::DoModal() invoking Pin
Igor IP21-Dec-08 21:25
professionalIgor IP21-Dec-08 21:25 
Questionrandom number generation Pin
mathy20-Dec-08 2:13
mathy20-Dec-08 2:13 
AnswerRe: random number generation Pin
Jijo.Raj20-Dec-08 2:20
Jijo.Raj20-Dec-08 2:20 
AnswerRe: random number generation Pin
David Crow20-Dec-08 6:34
David Crow20-Dec-08 6:34 
GeneralRe: random number generation Pin
Luc Pattyn20-Dec-08 7:04
sitebuilderLuc Pattyn20-Dec-08 7:04 
AnswerRe: random number generation Pin
CPallini20-Dec-08 7:54
mveCPallini20-Dec-08 7:54 
AnswerRe: random number generation Pin
Michael Schubert20-Dec-08 13:06
Michael Schubert20-Dec-08 13:06 
QuestionProblem sending data from TCP/IP server (used CAsyncSocket::Send) Pin
Shameer E.A.19-Dec-08 23:52
Shameer E.A.19-Dec-08 23:52 
My TCP/IP server(a dialog based MFC/VC app developed using CAsyncSocket class) is supposed to send 76800 bytes of data to the client which is a gsm modem(baud set at 57600 bps) which receives the data via gprs. i split it up into 240 packets of 320 bytes each.

The problem i am facing is loss of data at the client. I tried introducing delay(1s to 5s) at the server after sending each packet. Still the whole set of 76800 bytes never reach the client.

If i introduce an ACK from the client after receiving each paket and make the server to send the next packet only after RXing the ACK, then there is NO loss of data but it takes a long time(8to13 minutes) for the whole data transfer. My afordable time space is 40secs.

I am looking for a solution where the server can make sure when each packet(of 320 bytes) has reached the destination so that the next packet can be sent.

It would be extremely kind of you if you could help me up solve the issue. Pls let me know if any part is unclear.

(Note: The bytes are pixel data of a 240 x 320 resolution image, 8 bits per pixel.)
AnswerRe: Problem sending data from TCP/IP server (used CAsyncSocket::Send) Pin
Code-o-mat20-Dec-08 0:08
Code-o-mat20-Dec-08 0:08 
AnswerRe: Problem sending data from TCP/IP server (used CAsyncSocket::Send) Pin
Stuart Dootson20-Dec-08 1:21
professionalStuart Dootson20-Dec-08 1:21 
GeneralRe: Problem sending data from TCP/IP server (used CAsyncSocket::Send) Pin
Shameer E.A.20-Dec-08 18:39
Shameer E.A.20-Dec-08 18:39 
GeneralRe: Problem sending data from TCP/IP server (used CAsyncSocket::Send) Pin
Randor 20-Dec-08 18:54
professional Randor 20-Dec-08 18:54 
GeneralRe: Problem sending data from TCP/IP server (used CAsyncSocket::Send) Pin
Shameer E.A.20-Dec-08 19:17
Shameer E.A.20-Dec-08 19:17 
AnswerRe: Problem sending data from TCP/IP server (used CAsyncSocket::Send) Pin
Randor 20-Dec-08 7:46
professional Randor 20-Dec-08 7:46 
QuestionLooking for an ADT that can sort by view (so to speak) [modified] Pin
Mustafa Ismail Mustafa19-Dec-08 20:35
Mustafa Ismail Mustafa19-Dec-08 20:35 
AnswerRe: Looking for an ADT that can sort by view (so to speak) Pin
Stuart Dootson20-Dec-08 1:00
professionalStuart Dootson20-Dec-08 1:00 
GeneralRe: Looking for an ADT that can sort by view (so to speak) Pin
Mustafa Ismail Mustafa20-Dec-08 1:21
Mustafa Ismail Mustafa20-Dec-08 1:21 
QuestionHow can change CRect Value? Pin
Le@rner19-Dec-08 20:30
Le@rner19-Dec-08 20:30 
AnswerRe: How can change CRect Value? Pin
Hamid_RT19-Dec-08 20:45
Hamid_RT19-Dec-08 20:45 
GeneralRe: How can change CRect Value? Pin
Le@rner19-Dec-08 21:04
Le@rner19-Dec-08 21:04 
GeneralRe: How can change CRect Value? Pin
Code-o-mat19-Dec-08 21:55
Code-o-mat19-Dec-08 21:55 
GeneralRe: How can change CRect Value? Pin
Le@rner19-Dec-08 23:21
Le@rner19-Dec-08 23:21 
GeneralRe: How can change CRect Value? Pin
Code-o-mat19-Dec-08 23:26
Code-o-mat19-Dec-08 23:26 
GeneralRe: How can change CRect Value? Pin
Le@rner20-Dec-08 0:22
Le@rner20-Dec-08 0:22 
GeneralRe: How can change CRect Value? Pin
Code-o-mat20-Dec-08 0:28
Code-o-mat20-Dec-08 0:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.