Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets send buffer size.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Socket | 11.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
SocketID | The socket ID received by Socket.Connect function. | $sock |
Size | The new buffer size to use. | 256 * 1024 |
Returns OK or error.
Test send buffer size:
Set Variable [ $sock ; Value: MBS("Socket.NewTCPSocket") ]
#
Set Variable [ $defaultValue ; Value: MBS("Socket.GetSendBufferSize"; $sock) ]
Set Variable [ $v ; Value: MBS("Socket.SetSendBufferSize"; $sock; 1024 * 256) ]
Set Variable [ $newValue ; Value: MBS("Socket.GetSendBufferSize"; $sock) ]
Show Custom Dialog [ "Default: " & $defaultValue & ¶ & "Set to: " & $newValue ]
#
Set Variable [ $r ; Value: MBS("Socket.Close"; $sock) ]
This function checks for a license.
Created 19th January 2021, last changed 19th January 2021