Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
If you look at the TCP section in the IBM TCP/IP redbook[^] (warning - it's a 6MB PDF, but well worth the download), you'll see that the TCP layer should handle all the ACKs and stuff for you. You'll also see that it's a stream oriented protocol - which means that it's probably best if you send all 76800 bytes in one go - the TCP layer should ensure that the data gets split into packets, each packet transmitted and received and the data reconstructed correctly. It sends a set of packets, assuming successful transmission, and doesn't expect an ACK immediately (as you've seen, the ACKs aren't immediate!) - it sets a timeout for each packet, and expects the ACK before the timeout occurs.

Splitting your data up into bits stops TCP doing its job so easily, and is probably better suited to a datagram oriented protocol like UDP.

As I said before, the IBM redbook is a very good resource that helps you understand networking technology better, which should help you design networking apps better.

One last thing - there may be some options that need be set using setsockopt to optimise your TCP/IP stack for your transport layer (the GSM modem), as it's quite slow?

HTH!
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 
GeneralRe: How can change CRect Value? Pin
Le@rner20-Dec-08 1:54
Le@rner20-Dec-08 1:54 
GeneralRe: How can change CRect Value? Pin
Code-o-mat20-Dec-08 2:19
Code-o-mat20-Dec-08 2:19 

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.