Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Java/java/net/Socket.fz


# Fuzion interface to instance members of Java instance class 'java.net.Socket'
#
# !!!!!!  DO NOT EDIT, GENERATED CODE !!!!!!
#
# This code was generated automatically using the fzjava tool V0.087 called 
# as follows:
#
#   ./build/bin/fzjava java.base -to=build/modules/java.base -verbose=0
#
public Java.java.net.Socket(redef forbidden void) ref : Java.java.lang.Object(forbidden), fuzion.java.Java_Object(forbidden) is

  # call Java instance method 'public void java.net.Socket.bind(java.net.SocketAddress) throws java.io.IOException':
  #
  public bind_Ljava_7_net_7_SocketAddress_s_(arg0 Java.java.net.SocketAddress) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "bind" "(Ljava/net/SocketAddress;)V" Socket.this [(Java.java.net.Socket.bind_Ljava_7_net_7_SocketAddress_s_.this.arg0)]

  # call Java instance method 'public void java.net.Socket.close() throws java.io.IOException':
  #
  public close outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "close" "()V" Socket.this []

  # call Java instance method 'public void java.net.Socket.connect(java.net.SocketAddress) throws java.io.IOException':
  #
  public connect_Ljava_7_net_7_SocketAddress_s_(arg0 Java.java.net.SocketAddress) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "connect" "(Ljava/net/SocketAddress;)V" Socket.this [(Java.java.net.Socket.connect_Ljava_7_net_7_SocketAddress_s_.this.arg0)]

  # call Java instance method 'public void java.net.Socket.connect(java.net.SocketAddress,int) throws java.io.IOException':
  #
  public connect_Ljava_7_net_7_SocketAddress_s_I(arg0 Java.java.net.SocketAddress, arg1 i32) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "connect" "(Ljava/net/SocketAddress;I)V" Socket.this [(Java.java.net.Socket.connect_Ljava_7_net_7_SocketAddress_s_I.this.arg0); (fuzion.java.i32_to_java_object Java.java.net.Socket.connect_Ljava_7_net_7_SocketAddress_s_I.this.arg1)]

  # call Java instance method 'public java.nio.channels.SocketChannel java.net.Socket.getChannel()':
  #
  public getChannel Java.java.nio.channels.SocketChannel =>
    fuzion.java.call_virtual (Java.java.nio.channels.SocketChannel) "java.net.Socket" "getChannel" "()Ljava/nio/channels/SocketChannel;" Socket.this []

  # call Java instance method 'public java.net.InetAddress java.net.Socket.getInetAddress()':
  #
  public getInetAddress Java.java.net.InetAddress =>
    fuzion.java.call_virtual (Java.java.net.InetAddress) "java.net.Socket" "getInetAddress" "()Ljava/net/InetAddress;" Socket.this []

  # call Java instance method 'public java.io.InputStream java.net.Socket.getInputStream() throws java.io.IOException':
  #
  public getInputStream outcome (Java.java.io.InputStream) =>
    fuzion.java.call_virtual (outcome (Java.java.io.InputStream)) "java.net.Socket" "getInputStream" "()Ljava/io/InputStream;" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.getKeepAlive() throws java.net.SocketException':
  #
  public getKeepAlive outcome (bool) =>
    fuzion.java.call_virtual (outcome (bool)) "java.net.Socket" "getKeepAlive" "()Z" Socket.this []

  # call Java instance method 'public java.net.InetAddress java.net.Socket.getLocalAddress()':
  #
  public getLocalAddress Java.java.net.InetAddress =>
    fuzion.java.call_virtual (Java.java.net.InetAddress) "java.net.Socket" "getLocalAddress" "()Ljava/net/InetAddress;" Socket.this []

  # call Java instance method 'public int java.net.Socket.getLocalPort()':
  #
  public getLocalPort i32 =>
    fuzion.java.call_virtual (i32) "java.net.Socket" "getLocalPort" "()I" Socket.this []

  # call Java instance method 'public java.net.SocketAddress java.net.Socket.getLocalSocketAddress()':
  #
  public getLocalSocketAddress Java.java.net.SocketAddress =>
    fuzion.java.call_virtual (Java.java.net.SocketAddress) "java.net.Socket" "getLocalSocketAddress" "()Ljava/net/SocketAddress;" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.getOOBInline() throws java.net.SocketException':
  #
  public getOOBInline outcome (bool) =>
    fuzion.java.call_virtual (outcome (bool)) "java.net.Socket" "getOOBInline" "()Z" Socket.this []

  # call Java instance method 'public java.lang.Object java.net.Socket.getOption(java.net.SocketOption) throws java.io.IOException':
  #
  public getOption_Ljava_7_net_7_SocketOption_s_(arg0 Java.java.net.SocketOption) outcome (Java.java.lang.Object) =>
    fuzion.java.call_virtual (outcome (Java.java.lang.Object)) "java.net.Socket" "getOption" "(Ljava/net/SocketOption;)Ljava/lang/Object;" Socket.this [(Java.java.net.Socket.getOption_Ljava_7_net_7_SocketOption_s_.this.arg0)]

  # call Java instance method 'public java.io.OutputStream java.net.Socket.getOutputStream() throws java.io.IOException':
  #
  public getOutputStream outcome (Java.java.io.OutputStream) =>
    fuzion.java.call_virtual (outcome (Java.java.io.OutputStream)) "java.net.Socket" "getOutputStream" "()Ljava/io/OutputStream;" Socket.this []

  # call Java instance method 'public int java.net.Socket.getPort()':
  #
  public getPort i32 =>
    fuzion.java.call_virtual (i32) "java.net.Socket" "getPort" "()I" Socket.this []

  # call Java instance method 'public int java.net.Socket.getReceiveBufferSize() throws java.net.SocketException':
  #
  public getReceiveBufferSize outcome (i32) =>
    fuzion.java.call_virtual (outcome (i32)) "java.net.Socket" "getReceiveBufferSize" "()I" Socket.this []

  # call Java instance method 'public java.net.SocketAddress java.net.Socket.getRemoteSocketAddress()':
  #
  public getRemoteSocketAddress Java.java.net.SocketAddress =>
    fuzion.java.call_virtual (Java.java.net.SocketAddress) "java.net.Socket" "getRemoteSocketAddress" "()Ljava/net/SocketAddress;" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.getReuseAddress() throws java.net.SocketException':
  #
  public getReuseAddress outcome (bool) =>
    fuzion.java.call_virtual (outcome (bool)) "java.net.Socket" "getReuseAddress" "()Z" Socket.this []

  # call Java instance method 'public int java.net.Socket.getSendBufferSize() throws java.net.SocketException':
  #
  public getSendBufferSize outcome (i32) =>
    fuzion.java.call_virtual (outcome (i32)) "java.net.Socket" "getSendBufferSize" "()I" Socket.this []

  # call Java instance method 'public int java.net.Socket.getSoLinger() throws java.net.SocketException':
  #
  public getSoLinger outcome (i32) =>
    fuzion.java.call_virtual (outcome (i32)) "java.net.Socket" "getSoLinger" "()I" Socket.this []

  # call Java instance method 'public int java.net.Socket.getSoTimeout() throws java.net.SocketException':
  #
  public getSoTimeout outcome (i32) =>
    fuzion.java.call_virtual (outcome (i32)) "java.net.Socket" "getSoTimeout" "()I" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.getTcpNoDelay() throws java.net.SocketException':
  #
  public getTcpNoDelay outcome (bool) =>
    fuzion.java.call_virtual (outcome (bool)) "java.net.Socket" "getTcpNoDelay" "()Z" Socket.this []

  # call Java instance method 'public int java.net.Socket.getTrafficClass() throws java.net.SocketException':
  #
  public getTrafficClass outcome (i32) =>
    fuzion.java.call_virtual (outcome (i32)) "java.net.Socket" "getTrafficClass" "()I" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.isBound()':
  #
  public isBound bool =>
    fuzion.java.call_virtual (bool) "java.net.Socket" "isBound" "()Z" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.isClosed()':
  #
  public isClosed bool =>
    fuzion.java.call_virtual (bool) "java.net.Socket" "isClosed" "()Z" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.isConnected()':
  #
  public isConnected bool =>
    fuzion.java.call_virtual (bool) "java.net.Socket" "isConnected" "()Z" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.isInputShutdown()':
  #
  public isInputShutdown bool =>
    fuzion.java.call_virtual (bool) "java.net.Socket" "isInputShutdown" "()Z" Socket.this []

  # call Java instance method 'public boolean java.net.Socket.isOutputShutdown()':
  #
  public isOutputShutdown bool =>
    fuzion.java.call_virtual (bool) "java.net.Socket" "isOutputShutdown" "()Z" Socket.this []

  # call Java instance method 'public void java.net.Socket.sendUrgentData(int) throws java.io.IOException':
  #
  public sendUrgentData_I(arg0 i32) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "sendUrgentData" "(I)V" Socket.this [(fuzion.java.i32_to_java_object Java.java.net.Socket.sendUrgentData_I.this.arg0)]

  # call Java instance method 'public void java.net.Socket.setKeepAlive(boolean) throws java.net.SocketException':
  #
  public setKeepAlive_Z(arg0 bool) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setKeepAlive" "(Z)V" Socket.this [(fuzion.java.bool_to_java_object Java.java.net.Socket.setKeepAlive_Z.this.arg0)]

  # call Java instance method 'public void java.net.Socket.setOOBInline(boolean) throws java.net.SocketException':
  #
  public setOOBInline_Z(arg0 bool) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setOOBInline" "(Z)V" Socket.this [(fuzion.java.bool_to_java_object Java.java.net.Socket.setOOBInline_Z.this.arg0)]

  # call Java instance method 'public java.net.Socket java.net.Socket.setOption(java.net.SocketOption,java.lang.Object) throws java.io.IOException':
  #
  public setOption_Ljava_7_net_7_SocketOption_s_Ljava_7_lang_7_Object_s_(arg0 Java.java.net.SocketOption, arg1 Java.java.lang.Object) outcome (Java.java.net.Socket) =>
    fuzion.java.call_virtual (outcome (Java.java.net.Socket)) "java.net.Socket" "setOption" "(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/net/Socket;" Socket.this [(Java.java.net.Socket.setOption_Ljava_7_net_7_SocketOption_s_Ljava_7_lang_7_Object_s_.this.arg0); (Java.java.net.Socket.setOption_Ljava_7_net_7_SocketOption_s_Ljava_7_lang_7_Object_s_.this.arg1)]

  # call Java instance method 'public void java.net.Socket.setPerformancePreferences(int,int,int)':
  #
  public setPerformancePreferences_III(arg0 i32, arg1 i32, arg2 i32) unit =>
    fuzion.java.call_virtual (unit) "java.net.Socket" "setPerformancePreferences" "(III)V" Socket.this [(fuzion.java.i32_to_java_object Java.java.net.Socket.setPerformancePreferences_III.this.arg0); (fuzion.java.i32_to_java_object Java.java.net.Socket.setPerformancePreferences_III.this.arg1); (fuzion.java.i32_to_java_object Java.java.net.Socket.setPerformancePreferences_III.this.arg2)]

  # call Java instance method 'public void java.net.Socket.setReceiveBufferSize(int) throws java.net.SocketException':
  #
  public setReceiveBufferSize_I(arg0 i32) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setReceiveBufferSize" "(I)V" Socket.this [(fuzion.java.i32_to_java_object Java.java.net.Socket.setReceiveBufferSize_I.this.arg0)]

  # call Java instance method 'public void java.net.Socket.setReuseAddress(boolean) throws java.net.SocketException':
  #
  public setReuseAddress_Z(arg0 bool) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setReuseAddress" "(Z)V" Socket.this [(fuzion.java.bool_to_java_object Java.java.net.Socket.setReuseAddress_Z.this.arg0)]

  # call Java instance method 'public void java.net.Socket.setSendBufferSize(int) throws java.net.SocketException':
  #
  public setSendBufferSize_I(arg0 i32) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setSendBufferSize" "(I)V" Socket.this [(fuzion.java.i32_to_java_object Java.java.net.Socket.setSendBufferSize_I.this.arg0)]

  # call Java instance method 'public void java.net.Socket.setSoLinger(boolean,int) throws java.net.SocketException':
  #
  public setSoLinger_ZI(arg0 bool, arg1 i32) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setSoLinger" "(ZI)V" Socket.this [(fuzion.java.bool_to_java_object Java.java.net.Socket.setSoLinger_ZI.this.arg0); (fuzion.java.i32_to_java_object Java.java.net.Socket.setSoLinger_ZI.this.arg1)]

  # call Java instance method 'public void java.net.Socket.setSoTimeout(int) throws java.net.SocketException':
  #
  public setSoTimeout_I(arg0 i32) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setSoTimeout" "(I)V" Socket.this [(fuzion.java.i32_to_java_object Java.java.net.Socket.setSoTimeout_I.this.arg0)]

  # call Java instance method 'public void java.net.Socket.setTcpNoDelay(boolean) throws java.net.SocketException':
  #
  public setTcpNoDelay_Z(arg0 bool) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setTcpNoDelay" "(Z)V" Socket.this [(fuzion.java.bool_to_java_object Java.java.net.Socket.setTcpNoDelay_Z.this.arg0)]

  # call Java instance method 'public void java.net.Socket.setTrafficClass(int) throws java.net.SocketException':
  #
  public setTrafficClass_I(arg0 i32) outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "setTrafficClass" "(I)V" Socket.this [(fuzion.java.i32_to_java_object Java.java.net.Socket.setTrafficClass_I.this.arg0)]

  # call Java instance method 'public void java.net.Socket.shutdownInput() throws java.io.IOException':
  #
  public shutdownInput outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "shutdownInput" "()V" Socket.this []

  # call Java instance method 'public void java.net.Socket.shutdownOutput() throws java.io.IOException':
  #
  public shutdownOutput outcome (unit) =>
    fuzion.java.call_virtual (outcome (unit)) "java.net.Socket" "shutdownOutput" "()V" Socket.this []

  # call Java instance method 'public java.util.Set java.net.Socket.supportedOptions()':
  #
  public supportedOptions Java.java.util.Set =>
    fuzion.java.call_virtual (Java.java.util.Set) "java.net.Socket" "supportedOptions" "()Ljava/util/Set;" Socket.this []

  # short-hand to call Java method 'public void java.net.Socket.bind(java.net.SocketAddress) throws java.io.IOException':
  #
  public bind(arg0 Java.java.net.SocketAddress) (outcome (unit)) =>
    bind_Ljava_7_net_7_SocketAddress_s_ Java.java.net.Socket.bind.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.connect(java.net.SocketAddress) throws java.io.IOException':
  #
  public connect(arg0 Java.java.net.SocketAddress) (outcome (unit)) =>
    connect_Ljava_7_net_7_SocketAddress_s_ Java.java.net.Socket.connect.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.connect(java.net.SocketAddress,int) throws java.io.IOException':
  #
  public connect(arg0 Java.java.net.SocketAddress, arg1 i32) (outcome (unit)) =>
    connect_Ljava_7_net_7_SocketAddress_s_I Java.java.net.Socket.connect.this.arg0 Java.java.net.Socket.connect.this.arg1

  # short-hand to call Java method 'public java.lang.Object java.net.Socket.getOption(java.net.SocketOption) throws java.io.IOException':
  #
  public getOption(arg0 Java.java.net.SocketOption) (outcome (Java.java.lang.Object)) =>
    getOption_Ljava_7_net_7_SocketOption_s_ Java.java.net.Socket.getOption.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.sendUrgentData(int) throws java.io.IOException':
  #
  public sendUrgentData(arg0 i32) (outcome (unit)) =>
    sendUrgentData_I Java.java.net.Socket.sendUrgentData.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.setKeepAlive(boolean) throws java.net.SocketException':
  #
  public setKeepAlive(arg0 bool) (outcome (unit)) =>
    setKeepAlive_Z Java.java.net.Socket.setKeepAlive.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.setOOBInline(boolean) throws java.net.SocketException':
  #
  public setOOBInline(arg0 bool) (outcome (unit)) =>
    setOOBInline_Z Java.java.net.Socket.setOOBInline.this.arg0

  # short-hand to call Java method 'public java.net.Socket java.net.Socket.setOption(java.net.SocketOption,java.lang.Object) throws java.io.IOException':
  #
  public setOption(arg0 Java.java.net.SocketOption, arg1 Java.java.lang.Object) (outcome (Java.java.net.Socket)) =>
    setOption_Ljava_7_net_7_SocketOption_s_Ljava_7_lang_7_Object_s_ Java.java.net.Socket.setOption.this.arg0 Java.java.net.Socket.setOption.this.arg1

  # short-hand to call Java method 'public void java.net.Socket.setPerformancePreferences(int,int,int)':
  #
  public setPerformancePreferences(arg0 i32, arg1 i32, arg2 i32) (unit) =>
    setPerformancePreferences_III Java.java.net.Socket.setPerformancePreferences.this.arg0 Java.java.net.Socket.setPerformancePreferences.this.arg1 Java.java.net.Socket.setPerformancePreferences.this.arg2

  # short-hand to call Java method 'public void java.net.Socket.setReceiveBufferSize(int) throws java.net.SocketException':
  #
  public setReceiveBufferSize(arg0 i32) (outcome (unit)) =>
    setReceiveBufferSize_I Java.java.net.Socket.setReceiveBufferSize.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.setReuseAddress(boolean) throws java.net.SocketException':
  #
  public setReuseAddress(arg0 bool) (outcome (unit)) =>
    setReuseAddress_Z Java.java.net.Socket.setReuseAddress.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.setSendBufferSize(int) throws java.net.SocketException':
  #
  public setSendBufferSize(arg0 i32) (outcome (unit)) =>
    setSendBufferSize_I Java.java.net.Socket.setSendBufferSize.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.setSoLinger(boolean,int) throws java.net.SocketException':
  #
  public setSoLinger(arg0 bool, arg1 i32) (outcome (unit)) =>
    setSoLinger_ZI Java.java.net.Socket.setSoLinger.this.arg0 Java.java.net.Socket.setSoLinger.this.arg1

  # short-hand to call Java method 'public void java.net.Socket.setSoTimeout(int) throws java.net.SocketException':
  #
  public setSoTimeout(arg0 i32) (outcome (unit)) =>
    setSoTimeout_I Java.java.net.Socket.setSoTimeout.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.setTcpNoDelay(boolean) throws java.net.SocketException':
  #
  public setTcpNoDelay(arg0 bool) (outcome (unit)) =>
    setTcpNoDelay_Z Java.java.net.Socket.setTcpNoDelay.this.arg0

  # short-hand to call Java method 'public void java.net.Socket.setTrafficClass(int) throws java.net.SocketException':
  #
  public setTrafficClass(arg0 i32) (outcome (unit)) =>
    setTrafficClass_I Java.java.net.Socket.setTrafficClass.this.arg0