hypermedia.net
index
 
Name setBuffer ( )
Examples None available
Description Set the maximum size of the packet that can be sent or receive on the current socket. This value must be greater than 0, otherwise the buffer size is set to the his default value.

return true if the new buffer value have been correctly set, false otherwise.

note : this method has no effect if the socket is listening. To define a new buffer size, call this method before implementing a new buffer in memory. Explicitly before calling a receive methods.

Syntax
setBuffer(size);
Parameters
size   the buffer size value in bytes or n<=0
Returns boolean
Usage Web & Application
Related