
net.java.html.lib.node.dgram.Socket Maven / Gradle / Ivy
The newest version!
package net.java.html.lib.node.dgram;
public class Socket extends net.java.html.lib.node.events.EventEmitter {
protected Socket(net.java.html.lib.Objs.Constructor> c, java.lang.Object js) {
super(c, js);
}
private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
$Constructor() {
super(Socket.class);
}
@Override
public Socket create(java.lang.Object obj) {
return obj == null ? null : new Socket(this, obj);
}
};
private static final $Constructor $AS = new $Constructor();
public static Socket $as(java.lang.Object obj) {
return $AS.create(obj);
}
public void addMembership(java.lang.String multicastAddress, java.lang.String multicastInterface) {
$Typings$.addMembership$3($js(this), multicastAddress, multicastInterface);
}
public void addMembership(java.lang.String multicastAddress) {
$Typings$.addMembership$4($js(this), multicastAddress);
}
public net.java.html.lib.node.dgram.AddressInfo address() {
return (net.java.html.lib.node.dgram.AddressInfo)net.java.html.lib.node.dgram.AddressInfo.$as($Typings$.address$5($js(this)));
}
public void bind(double port, java.lang.String address, net.java.html.lib.Function.A0 extends java.lang.Void> callback) {
$Typings$.bind$6($js(this), port, address, net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(callback)));
}
public void bind(double port) {
$Typings$.bind$7($js(this), port);
}
public void bind(double port, java.lang.String address) {
$Typings$.bind$8($js(this), port, address);
}
public void close() {
$Typings$.close$9($js(this));
}
public void dropMembership(java.lang.String multicastAddress, java.lang.String multicastInterface) {
$Typings$.dropMembership$10($js(this), multicastAddress, multicastInterface);
}
public void dropMembership(java.lang.String multicastAddress) {
$Typings$.dropMembership$11($js(this), multicastAddress);
}
public void send(net.java.html.lib.node.Buffer buf, double offset, double length, double port, java.lang.String address, net.java.html.lib.Function.A2 super net.java.html.lib.Error,? super java.lang.Number,? extends java.lang.Void> callback) {
$Typings$.send$12($js(this), /* FirstTypeNode*/$js(buf), offset, length, port, address, net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(callback, new Class[] {net.java.html.lib.Error.class, java.lang.Number.class})));
}
public void send(net.java.html.lib.node.Buffer buf, double offset, double length, double port, java.lang.String address) {
$Typings$.send$13($js(this), /* FirstTypeNode*/$js(buf), offset, length, port, address);
}
public void setBroadcast(java.lang.Boolean flag) {
$Typings$.setBroadcast$14($js(this), flag);
}
public void setMulticastLoopback(java.lang.Boolean flag) {
$Typings$.setMulticastLoopback$15($js(this), flag);
}
public void setMulticastTTL(double ttl) {
$Typings$.setMulticastTTL$16($js(this), ttl);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy