APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.net

public Class NetJavaSocketImpl

extends Object
implements Socket
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.net.Socket, com.badlogic.gdx.utils.Disposable
Imports
java.io.InputStream, .OutputStream, java.net.InetSocketAddress, com.badlogic.gdx.Net.Protocol, com.badlogic.gdx.utils.GdxRuntimeException

Socket implementation using java.net.Socket.
Author
noblemaster

Field Summary

Modifier and TypeField and Description
private Socket
socket

Our socket or null for disposed, aka closed.

Constructor Summary

AccessConstructor and Description
public
NetJavaSocketImpl(Net.Protocol protocol, String host, int port, SocketHints hints)

public

Method Summary

Modifier and TypeMethod and Description
private void
public void
dispose()

Implements com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

public InputStream
public OutputStream
public String
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

socketback to summary
private Socket socket

Our socket or null for disposed, aka closed.

Constructor Detail

NetJavaSocketImplback to summary
public NetJavaSocketImpl(Net.Protocol protocol, String host, int port, SocketHints hints)
NetJavaSocketImplback to summary
public NetJavaSocketImpl(Socket socket, SocketHints hints)

Method Detail

applyHintsback to summary
private void applyHints(SocketHints hints)
disposeback to summary
public void dispose()

Implements com.badlogic.gdx.utils.Disposable.dispose.

Doc from com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

Annotations
@Override
getInputStreamback to summary
public InputStream getInputStream()

Implements com.badlogic.gdx.net.Socket.getInputStream.

Annotations
@Override
getOutputStreamback to summary
public OutputStream getOutputStream()

Implements com.badlogic.gdx.net.Socket.getOutputStream.

Annotations
@Override
getRemoteAddressback to summary
public String getRemoteAddress()

Implements com.badlogic.gdx.net.Socket.getRemoteAddress.

Annotations
@Override
isConnectedback to summary
public boolean isConnected()

Implements com.badlogic.gdx.net.Socket.isConnected.

Annotations
@Override