R
Ravikanth
Hi all,
How do i retreive the default socket receive buffer size.
I am implementing a Client Server program in which i got an issue.
When the client is sending some message, the server receives it and
reads the message.
Actually my implemenation goes like this.
A client Tcl script opens a pipe with a C program, which acts a
client which communicates with another C program which acts as a
server.
I havent set any properties of the socket on which the Server is
listening, and accepting connections, and also in the client C
program.
Every thing was working fine until a message of length say 350 bytes
is sent from the client Tcl script via the Client C program to the
server.
For verification purposes i have added the code in the server to check
how many number of bytes are received from the client.
When the client is sending 350 bytes , the server is receiving only
104 bytes.
After a little debugging, what i observed is it is just reading the
104 bytes starting from 257th Byte in the received message to 349th
Byte in the message.
I also observed that sending a message of length less than 256 byte,
the server is able to read it completely.
But if i m sending from the client a message of length> 256 bytes, it
is only reading the excess bytes.
Is there any default size of the message which the server can read.
My requirement is the Server has to read the entire 350 bytes sent.
Could any one help me solving this problem.
Should i modify any of the socket properites in Server and Client C
programs or should i set some properties in the Tcl script.
Please help me solving this problem.
Thanks in Advance !!!
Ravikanth
How do i retreive the default socket receive buffer size.
I am implementing a Client Server program in which i got an issue.
When the client is sending some message, the server receives it and
reads the message.
Actually my implemenation goes like this.
A client Tcl script opens a pipe with a C program, which acts a
client which communicates with another C program which acts as a
server.
I havent set any properties of the socket on which the Server is
listening, and accepting connections, and also in the client C
program.
Every thing was working fine until a message of length say 350 bytes
is sent from the client Tcl script via the Client C program to the
server.
For verification purposes i have added the code in the server to check
how many number of bytes are received from the client.
When the client is sending 350 bytes , the server is receiving only
104 bytes.
After a little debugging, what i observed is it is just reading the
104 bytes starting from 257th Byte in the received message to 349th
Byte in the message.
I also observed that sending a message of length less than 256 byte,
the server is able to read it completely.
But if i m sending from the client a message of length> 256 bytes, it
is only reading the excess bytes.
Is there any default size of the message which the server can read.
My requirement is the Server has to read the entire 350 bytes sent.
Could any one help me solving this problem.
Should i modify any of the socket properites in Server and Client C
programs or should i set some properties in the Tcl script.
Please help me solving this problem.
Thanks in Advance !!!
Ravikanth