G
Guest
Hi,
My application uses an asynchronous socket server. The question I have is
what i should set my socket server buffer size to.
I will know the size of each data packet sent across the network and was
considering setting the buffer size to this.
In the examples I have seen on the net the buffer size is usually set to
1024 bytes and the socket is continually read until all data is received.
I'd like to avoid repeatedly reading socket to get full data packet since I
will know how big the packet will be in advance.
My data will be bigger than this e.g 10KB but will this buffer size impact
on performance and therefore be better to use a smaller buffer and read the
socket repeatedly?
I'd appreciate any advice.
Thanks In Advance
Macca
My application uses an asynchronous socket server. The question I have is
what i should set my socket server buffer size to.
I will know the size of each data packet sent across the network and was
considering setting the buffer size to this.
In the examples I have seen on the net the buffer size is usually set to
1024 bytes and the socket is continually read until all data is received.
I'd like to avoid repeatedly reading socket to get full data packet since I
will know how big the packet will be in advance.
My data will be bigger than this e.g 10KB but will this buffer size impact
on performance and therefore be better to use a smaller buffer and read the
socket repeatedly?
I'd appreciate any advice.
Thanks In Advance
Macca