com.badlogic.gdx.backends.android
Class AndroidSocket

java.lang.Object
  extended by com.badlogic.gdx.backends.android.AndroidSocket
All Implemented Interfaces:
Socket, Disposable

public class AndroidSocket
extends Object
implements Socket

Socket implementation using java.net.Socket.

Author:
noblemaster

Constructor Summary
AndroidSocket(Net.Protocol protocol, String host, int port, SocketHints hints)
           
AndroidSocket(Socket socket, SocketHints hints)
           
 
Method Summary
 void dispose()
           
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 boolean isConnected()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidSocket

public AndroidSocket(Net.Protocol protocol,
                     String host,
                     int port,
                     SocketHints hints)

AndroidSocket

public AndroidSocket(Socket socket,
                     SocketHints hints)
Method Detail

isConnected

public boolean isConnected()
Specified by:
isConnected in interface Socket

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface Socket

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface Socket

dispose

public void dispose()
Specified by:
dispose in interface Disposable


Copyright © 2013. All Rights Reserved.