diff options
| author | Diego Nehab <diego.nehab@gmail.com> | 2015-10-06 11:33:50 +0800 |
|---|---|---|
| committer | Diego Nehab <diego.nehab@gmail.com> | 2015-10-06 11:33:50 +0800 |
| commit | be67f63f4e11e53690bf1431a236f86b484c9bf0 (patch) | |
| tree | 2a9e3de162711f3453d238eb49155c4c488189ec /doc/socket.html | |
| parent | fd729b32a8966291f007567f72f3dc0158bdab35 (diff) | |
| download | luasocket-be67f63f4e11e53690bf1431a236f86b484c9bf0.tar.gz luasocket-be67f63f4e11e53690bf1431a236f86b484c9bf0.tar.bz2 luasocket-be67f63f4e11e53690bf1431a236f86b484c9bf0.zip | |
Changed buffer-per-socket to buffer-per-operation.
This is a difficult tradeoff to measure. I think large
datagrams won't be used very frequently. So it is better to
not lock a large buffer to each socket object and instead
allocate and deallocate for each operation receiving a
datagram larger than UDP_DATAGRAMSIZE.
Diffstat (limited to 'doc/socket.html')
| -rw-r--r-- | doc/socket.html | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/doc/socket.html b/doc/socket.html index e6a9bf8..8a81414 100644 --- a/doc/socket.html +++ b/doc/socket.html | |||
| @@ -90,7 +90,7 @@ of connect are defined as simple helper functions that restrict the | |||
| 90 | 90 | ||
| 91 | <!-- debug ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 91 | <!-- debug ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 92 | 92 | ||
| 93 | <p class=name id=debug> | 93 | <p class=name id=debug> |
| 94 | socket.<b>_DEBUG</b> | 94 | socket.<b>_DEBUG</b> |
| 95 | </p> | 95 | </p> |
| 96 | 96 | ||
| @@ -99,6 +99,19 @@ This constant is set to <tt><b>true</b></tt> if the library was compiled | |||
| 99 | with debug support. | 99 | with debug support. |
| 100 | </p> | 100 | </p> |
| 101 | 101 | ||
| 102 | <!-- datagramsize +++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
| 103 | |||
| 104 | <p class=name id=debug> | ||
| 105 | socket.<b>_DATAGRAMSIZE</b> | ||
| 106 | </p> | ||
| 107 | |||
| 108 | <p class=description> | ||
| 109 | Default datagram size used by calls to | ||
| 110 | <a href="udp.html#receive"<tt>receive</tt></a> and | ||
| 111 | <a href="udp.html#receivefrom"><tt>receivefrom</tt></a>. | ||
| 112 | (Unless changed in compile time, the value is 8192.) | ||
| 113 | </p> | ||
| 114 | |||
| 102 | <!-- get time +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 115 | <!-- get time +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 103 | 116 | ||
| 104 | <p class=name id=gettime> | 117 | <p class=name id=gettime> |
| @@ -393,6 +406,16 @@ The maximum number of sockets that the <a | |||
| 393 | href=#select><tt>select</tt></a> function can handle. | 406 | href=#select><tt>select</tt></a> function can handle. |
| 394 | </p> | 407 | </p> |
| 395 | 408 | ||
| 409 | <!-- socketinvalid ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
| 410 | |||
| 411 | <p class=name id=socketinvalid> | ||
| 412 | socket.<b>_SOCKETINVALID</b> | ||
| 413 | </p> | ||
| 414 | |||
| 415 | <p class=description> | ||
| 416 | The OS value for an invalid socket. | ||
| 417 | </p> | ||
| 418 | |||
| 396 | <!-- try ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 419 | <!-- try ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 397 | 420 | ||
| 398 | <p class=name id=try> | 421 | <p class=name id=try> |
