new require("vertx/network_support")(delegate)
Provides common parameters that can be set on network objects. Do not use
this directly.
Parameters:
| Name | Type | Description |
|---|---|---|
delegate |
external:NetworkSupport | The Java delegate for most functions |
- Source:
- See:
This module provides mixin functions for Vert.x networking objects.
Functions defined in this module are exposed through objects in
module:vertx/net and module:vertx/http.- Source:
Methods
-
receiveBufferSize(size) → {number|Object}
-
Set or get the receive buffer size
Parameters:
Name Type Argument Description sizenumber <optional>
If provided, set the value; if not, returns the current value. - Source:
Returns:
the value or this- Type
- number | Object
-
reuseAddress(reuse) → {boolean|Object}
-
Set or get the TCP reuse address value
Parameters:
Name Type Argument Description reuseboolean <optional>
If provided, set the value; if not, returns the current value. - Source:
Returns:
the value or this- Type
- boolean | Object
-
sendBufferSize(size) → {number|Object}
-
Set or get the send buffer size
Parameters:
Name Type Argument Description sizenumber <optional>
If provided, set the value; if not, returns the current value. - Source:
Returns:
the value or this- Type
- number | Object
-
trafficClass(class) → {number|Object}
-
Set or get the TCP traffic class
Parameters:
Name Type Argument Description classnumber <optional>
If provided, set the value; if not, returns the current value. - Source:
Returns:
the value or this- Type
- number | Object