public class UDPSocketHelper extends VertxHelperBase
Modifier and Type | Class and Description |
---|---|
class |
UDPSocketHelper.UDPSocket
Socket helper for individual sockets.
|
VertxHelperBase.AccessorVerticle
HelperBase.DATA_TYPE
_verticle, _vertx
_actor, _currentObj
Constructor and Description |
---|
UDPSocketHelper(java.lang.Object actor,
jdk.nashorn.api.scripting.ScriptObjectMirror helping)
Constructor for UDPSocketHelper for the specified actor.
|
Modifier and Type | Method and Description |
---|---|
UDPSocketHelper.UDPSocket |
createSocket(jdk.nashorn.api.scripting.ScriptObjectMirror scriptObjectMirror,
boolean enableBroadcast)
Create the UDP socket.
|
static UDPSocketHelper |
getOrCreateHelper(java.lang.Object actor,
jdk.nashorn.api.scripting.ScriptObjectMirror helping)
Get or create a helper for the specified actor.
|
static java.lang.String[] |
supportedReceiveTypes()
Return an array of the types supported by the current host for
receiveType arguments.
|
static java.lang.String[] |
supportedSendTypes()
Return an array of the types supported by the current host for
sendType arguments.
|
_issueOrDeferResponse, _processPendingJob, _setBusy, closeVertx, getHelper, getImageTypes, reset, submit, undeploy
_appendNumericToBuffer, _appendToBuffer, _error, _error, _error, _error, _extractFromBuffer, _issueResponse, _removeDuplicates, _sizeOfType, _toJavaBytes, _toJSArray, getHelping
public UDPSocketHelper(java.lang.Object actor, jdk.nashorn.api.scripting.ScriptObjectMirror helping)
actor
- The actor that this will help.helping
- The JavaScript object that this helping.public UDPSocketHelper.UDPSocket createSocket(jdk.nashorn.api.scripting.ScriptObjectMirror scriptObjectMirror, boolean enableBroadcast)
scriptObjectMirror
- The JavaScript instance invoking the shell.enableBroadcast
- enabling or not message broadcastingpublic static UDPSocketHelper getOrCreateHelper(java.lang.Object actor, jdk.nashorn.api.scripting.ScriptObjectMirror helping)
actor
- Either a JavaScript actor or a RestrictedJavaScriptInterface.helping
- The JavaScript object that this is helping.public static java.lang.String[] supportedReceiveTypes()
public static java.lang.String[] supportedSendTypes()