public class Socket extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>| Modifier and Type | Field and Description |
|---|---|
Objs.Property<Number> |
bufferSize |
Objs.Property<Number> |
bytesRead |
Objs.Property<Number> |
bytesWritten |
Objs.Property<String> |
localAddress |
Objs.Property<Number> |
localPort |
Objs.Property<String> |
remoteAddress |
Objs.Property<String> |
remoteFamily |
Objs.Property<Number> |
remotePort |
| Modifier | Constructor and Description |
|---|---|
protected |
Socket(Objs.Constructor<?> c,
Object js) |
| Modifier and Type | Method and Description |
|---|---|
static Socket |
$as(Object obj) |
void |
addMembership(String multicastAddress) |
void |
addMembership(String multicastAddress,
String multicastInterface) |
Objs |
address() |
void |
bind(double port) |
void |
bind(double port,
String address) |
void |
bind(double port,
String address,
Function.A0<? extends Void> callback) |
Number |
bufferSize() |
Number |
bytesRead() |
Number |
bytesWritten() |
void |
close() |
void |
connect(double port) |
void |
connect(double port,
String host) |
void |
connect(double port,
String host,
Function connectionListener) |
void |
connect(String path) |
void |
connect(String path,
Function connectionListener) |
void |
destroy() |
void |
dropMembership(String multicastAddress) |
void |
dropMembership(String multicastAddress,
String multicastInterface) |
void |
end() |
void |
end(Buffer buffer) |
void |
end(Buffer buffer,
Function cb) |
void |
end(Object data) |
void |
end(Object data,
String encoding) |
void |
end(String str) |
void |
end(String str,
Function cb) |
void |
end(String str,
String encoding) |
void |
end(String str,
String encoding,
Function cb) |
String |
localAddress() |
Number |
localPort() |
void |
pause() |
void |
ref() |
String |
remoteAddress() |
String |
remoteFamily() |
Number |
remotePort() |
void |
resume() |
void |
send(Buffer buf,
double offset,
double length,
double port,
String address) |
void |
send(Buffer buf,
double offset,
double length,
double port,
String address,
Function.A2<? super Error,? super Number,? extends Void> callback) |
void |
setBroadcast(Boolean flag) |
void |
setEncoding() |
void |
setEncoding(String encoding) |
void |
setKeepAlive() |
void |
setKeepAlive(Boolean enable) |
void |
setKeepAlive(Boolean enable,
double initialDelay) |
void |
setMulticastLoopback(Boolean flag) |
void |
setMulticastTTL(double ttl) |
void |
setNoDelay() |
void |
setNoDelay(Boolean noDelay) |
void |
setTimeout(double timeout) |
void |
setTimeout(double timeout,
Function callback) |
void |
unref() |
Boolean |
write(Buffer buffer) |
Boolean |
write(Buffer buffer,
Function cb) |
void |
write(Object data) |
void |
write(Object data,
String encoding) |
void |
write(Object data,
String encoding,
Function callback) |
Boolean |
write(String str) |
Boolean |
write(String str,
Function cb) |
Boolean |
write(String str,
String encoding) |
Boolean |
write(String str,
String encoding,
Function cb) |
Boolean |
write(String str,
String encoding,
String fd) |
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOfpublic Objs.Property<Number> bufferSize
public Objs.Property<String> remoteAddress
public Objs.Property<String> remoteFamily
public Objs.Property<Number> remotePort
public Objs.Property<String> localAddress
public Objs.Property<Number> localPort
public Objs.Property<Number> bytesRead
public Objs.Property<Number> bytesWritten
protected Socket(Objs.Constructor<?> c, Object js)
public Number bufferSize()
public String remoteAddress()
public String remoteFamily()
public Number remotePort()
public String localAddress()
public Number localPort()
public Number bytesRead()
public Number bytesWritten()
public void addMembership(String multicastAddress)
public Objs address()
public void bind(double port,
String address,
Function.A0<? extends Void> callback)
public void bind(double port)
public void bind(double port,
String address)
public void close()
public void connect(double port)
public void connect(double port,
String host)
public void connect(String path)
public void destroy()
public void dropMembership(String multicastAddress)
public void end()
public void end(Buffer buffer)
public void end(Object data)
public void end(String str)
public void pause()
public void ref()
public void resume()
public void send(Buffer buf, double offset, double length, double port, String address, Function.A2<? super Error,? super Number,? extends Void> callback)
public void setBroadcast(Boolean flag)
public void setEncoding(String encoding)
public void setEncoding()
public void setKeepAlive(Boolean enable, double initialDelay)
public void setKeepAlive()
public void setKeepAlive(Boolean enable)
public void setMulticastLoopback(Boolean flag)
public void setMulticastTTL(double ttl)
public void setNoDelay(Boolean noDelay)
public void setNoDelay()
public void setTimeout(double timeout,
Function callback)
public void setTimeout(double timeout)
public void unref()
public void write(Object data)
Copyright © 2016. All rights reserved.