When i sent a packet with size less than 15 it will sent.But when i sent a packet greater than that it won't sent.Sometimes, it will sent greater than 15.Sometimes won't.What is the reason for that? Plz give me some solutions...
Packets not sending properly
Collapse
X
-
Tags: None
-
Originally posted by selvialagarWhen i sent a packet with size less than 15 it will sent.But when i sent a packet greater than that it won't sent.Sometimes, it will sent greater than 15.Sometimes won't.What is the reason for that? Plz give me some solutions...
Greetings,
Nepomuk -
Hi,
Packet size less than 15 means, i am not getting. Is it 15 bytes.
If it is 15 bytes, i don't understand why it is not working for you. Is it program you wrote or some other application?
Regards,
ArulComment
-
Originally posted by ArulmuruganHi,
Packet size less than 15 means, i am not getting. Is it 15 bytes.
If it is 15 bytes, i don't understand why it is not working for you. Is it program you wrote or some other application?
Regards,
Arul
Code:short Sender::SendDataSync(Byte SendBuffer[]) { try { this->writer->Write(SendBuffer); String *str=Sender::BytesToUnicodeStringWC(SendBuffer,SendBuffer->Count); Sender::LogData(String::Concat("Sent : ",str), S"log"); SendBuffer=0; }//try }
But this->writer->Write(SendBuff er) will send only 16 bytes of data.here writer specifies BinaryWriter.Wh en I check with network monitor, the data send will be 16 bytes.. What is the reason for that?Comment
-
Sir,
I am using System::Net::So ckets.
Code:BinaryWriter *writer; TcpClient *client; NetworkStream *clientStream; Sender *sockWriter; Sender *localSocketWriter; Sender::Sender(NetworkStream *clientStream) { this->clientStream =clientStream; this->writer=new BinaryWriter(this->clientStream); } sockWriter=new Sender(); sockWriter->client =new TcpClient(); sockWriter->client->Connect(this->hostName,this->port_number); sockWriter->clientStream=sockWriter->client->GetStream(); localSocketWriter=new Sender(this->sockWriter->clientStream);
Comment
-
hi......
I solved this problem. The problem is, the window size. When the destination ackowledges my packet, it sends its window size as 16. That's why, 16 bytes are taken by the destination.Now i corrected it, and it works fine.
Thanks for your valuable replies.Comment
Comment