public static class TCPWrap.TCPImpl extends JavaStreamWrap.StreamWrapImpl
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
byteCount, runtime| Modifier | Constructor and Description |
|---|---|
|
TCPWrap.TCPImpl() |
protected |
TCPWrap.TCPImpl(SocketHandle handle,
ScriptRunner runtime) |
| Modifier and Type | Method and Description |
|---|---|
String |
bind(String address,
int port) |
String |
bind6(String address,
int port) |
static Object |
connect(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
static Object |
connect6(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
protected void |
connectComplete(int err,
org.mozilla.javascript.Scriptable s) |
String |
getClassName() |
org.mozilla.javascript.Function |
getOnConnection() |
static Object |
getpeername(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
static Object |
getsockname(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
String |
listen(int backlog) |
static Object |
newTCPImpl(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr) |
protected void |
onConnection(AbstractHandle handle) |
void |
setKeepAlive(boolean nd) |
void |
setNoDelay(boolean nd) |
void |
setOnConnection(org.mozilla.javascript.Function oc) |
static Object |
shutdown(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function func) |
close, construct, getByteCount, getOnRead, getWriteQueueSize, onRead, readStart, readStop, setOnRead, writeAsciiString, writeBuffer, writeComplete, writeUcs2String, writeUtf8StringclearErrno, clearPin, close, getRunner, getRunner, ref, requestPin, setErrno, setErrno, unrefapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic static final String CLASS_NAME
public TCPWrap.TCPImpl()
protected TCPWrap.TCPImpl(SocketHandle handle, ScriptRunner runtime)
@JSConstructor public static Object newTCPImpl(org.mozilla.javascript.Context cx, Object[] args, org.mozilla.javascript.Function ctorObj, boolean inNewExpr)
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class JavaStreamWrap.StreamWrapImpl@JSSetter(value="onconnection") public void setOnConnection(org.mozilla.javascript.Function oc)
@JSGetter(value="onconnection") public org.mozilla.javascript.Function getOnConnection()
@JSFunction public String listen(int backlog)
protected void onConnection(AbstractHandle handle)
@JSFunction public static Object connect(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function func)
@JSFunction public static Object connect6(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function func)
protected void connectComplete(int err,
org.mozilla.javascript.Scriptable s)
@JSFunction public static Object shutdown(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function func)
@JSFunction public static Object getsockname(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function func)
@JSFunction public static Object getpeername(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function func)
@JSFunction public void setNoDelay(boolean nd)
@JSFunction public void setKeepAlive(boolean nd)
Copyright © 2016 Apigee Corporation. All Rights Reserved.