public class Socket extends EventEmitter
Objs.Constructor<T extends Objs>, Objs.Property<T>
defaultMaxListeners, EventEmitter
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) |
AddressInfo |
address() |
void |
bind(double port) |
void |
bind(double port,
String address) |
void |
bind(double port,
String address,
Function.A0<? extends Void> callback) |
void |
close() |
void |
dropMembership(String multicastAddress) |
void |
dropMembership(String multicastAddress,
String multicastInterface) |
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 |
setMulticastLoopback(Boolean flag) |
void |
setMulticastTTL(double ttl) |
addListener, defaultMaxListeners, emit, EventEmitter, getMaxListeners, listenerCount, listenerCount, listeners, on, once, removeAllListeners, removeAllListeners, removeListener, setMaxListeners
$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, valueOf
protected Socket(Objs.Constructor<?> c, Object js)
public void addMembership(String multicastAddress)
public AddressInfo 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 dropMembership(String multicastAddress)
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 setMulticastLoopback(Boolean flag)
public void setMulticastTTL(double ttl)
Copyright © 2018. All rights reserved.