public class Socket
extends net.java.html.lib.Objs
| Modifier and Type | Field and Description |
|---|---|
net.java.html.lib.Objs.Property<Number> |
bufferSize |
net.java.html.lib.Objs.Property<Number> |
bytesRead |
net.java.html.lib.Objs.Property<Number> |
bytesWritten |
net.java.html.lib.Objs.Property<String> |
localAddress |
net.java.html.lib.Objs.Property<Number> |
localPort |
net.java.html.lib.Objs.Property<String> |
remoteAddress |
net.java.html.lib.Objs.Property<String> |
remoteFamily |
net.java.html.lib.Objs.Property<Number> |
remotePort |
| Modifier | Constructor and Description |
|---|---|
protected |
Socket(net.java.html.lib.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) |
net.java.html.lib.Objs |
address() |
void |
bind(double port) |
void |
bind(double port,
String address) |
void |
bind(double port,
String address,
net.java.html.lib.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,
net.java.html.lib.Function connectionListener) |
void |
connect(String path) |
void |
connect(String path,
net.java.html.lib.Function connectionListener) |
void |
destroy() |
void |
dropMembership(String multicastAddress) |
void |
dropMembership(String multicastAddress,
String multicastInterface) |
void |
end() |
void |
end(Buffer buffer) |
void |
end(Buffer buffer,
net.java.html.lib.Function cb) |
void |
end(Object data) |
void |
end(Object data,
String encoding) |
void |
end(String str) |
void |
end(String str,
net.java.html.lib.Function cb) |
void |
end(String str,
String encoding) |
void |
end(String str,
String encoding,
net.java.html.lib.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,
net.java.html.lib.Function.A2<? super net.java.html.lib.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,
net.java.html.lib.Function callback) |
void |
unref() |
Boolean |
write(Buffer buffer) |
Boolean |
write(Buffer buffer,
net.java.html.lib.Function cb) |
void |
write(Object data) |
void |
write(Object data,
String encoding) |
void |
write(Object data,
String encoding,
net.java.html.lib.Function callback) |
Boolean |
write(String str) |
Boolean |
write(String str,
net.java.html.lib.Function cb) |
Boolean |
write(String str,
String encoding) |
Boolean |
write(String str,
String encoding,
net.java.html.lib.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 net.java.html.lib.Objs.Property<Number> bufferSize
public net.java.html.lib.Objs.Property<String> remoteAddress
public net.java.html.lib.Objs.Property<String> remoteFamily
public net.java.html.lib.Objs.Property<Number> remotePort
public net.java.html.lib.Objs.Property<String> localAddress
public net.java.html.lib.Objs.Property<Number> localPort
public net.java.html.lib.Objs.Property<Number> bytesRead
public net.java.html.lib.Objs.Property<Number> bytesWritten
protected Socket(net.java.html.lib.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 net.java.html.lib.Objs address()
public void bind(double port,
String address,
net.java.html.lib.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,
String host,
net.java.html.lib.Function connectionListener)
public void connect(double port)
public void connect(double port,
String host)
public void connect(String path, net.java.html.lib.Function connectionListener)
public void connect(String path)
public void destroy()
public void dropMembership(String multicastAddress)
public void end()
public void end(Buffer buffer, net.java.html.lib.Function cb)
public void end(Buffer buffer)
public void end(Object data)
public void end(String str)
public void end(String str, net.java.html.lib.Function cb)
public void pause()
public void ref()
public void resume()
public void send(Buffer buf, double offset, double length, double port, String address, net.java.html.lib.Function.A2<? super net.java.html.lib.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,
net.java.html.lib.Function callback)
public void setTimeout(double timeout)
public void unref()
public void write(Object data)
Copyright © 2016. All rights reserved.