Hello,
Could somebody clear this up for me. If a TCP packet becomes fragmented into two packets, does winsock give two notification messages? or is this somthing I should worry about? The reason I am asking is that I am trying to send a structure through TCP and I dont have any way of checking that I recieved the whole thing. I have also tried the loop below but it seems to have some problems.
I would also like to know what is the biggest string I can use with TCP SEND when the baud rate of your modile phone is only 2400. I suspect it would be araound 200 to 300.
------------------
Cheers
Could somebody clear this up for me. If a TCP packet becomes fragmented into two packets, does winsock give two notification messages? or is this somthing I should worry about? The reason I am asking is that I am trying to send a structure through TCP and I dont have any way of checking that I recieved the whole thing. I have also tried the loop below but it seems to have some problems.
I would also like to know what is the biggest string I can use with TCP SEND when the baud rate of your modile phone is only 2400. I suspect it would be araound 200 to 300.
Code:
type CRecord Well as long Summary as string * 256 end type Packet = "" Buffer = "" do tcp recv hClient,len(Record),Buffer if err then msgbox str$(errclear):end Packet = Packet & Buffer loop len(Buffer) lset Record = Packet
Cheers
Comment