Class HeadlessNet
- java.lang.Object
-
- com.badlogic.gdx.backends.headless.HeadlessNet
-
- All Implemented Interfaces:
com.badlogic.gdx.Net
public class HeadlessNet extends java.lang.Object implements com.badlogic.gdx.NetHeadless implementation of theNetAPI, based on LWJGL implementation
-
-
Constructor Summary
Constructors Constructor Description HeadlessNet(HeadlessApplicationConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelHttpRequest(com.badlogic.gdx.Net.HttpRequest httpRequest)com.badlogic.gdx.net.SocketnewClientSocket(com.badlogic.gdx.Net.Protocol protocol, java.lang.String host, int port, com.badlogic.gdx.net.SocketHints hints)com.badlogic.gdx.net.ServerSocketnewServerSocket(com.badlogic.gdx.Net.Protocol protocol, int port, com.badlogic.gdx.net.ServerSocketHints hints)com.badlogic.gdx.net.ServerSocketnewServerSocket(com.badlogic.gdx.Net.Protocol protocol, java.lang.String hostname, int port, com.badlogic.gdx.net.ServerSocketHints hints)booleanopenURI(java.lang.String URI)voidsendHttpRequest(com.badlogic.gdx.Net.HttpRequest httpRequest, com.badlogic.gdx.Net.HttpResponseListener httpResponseListener)
-
-
-
Constructor Detail
-
HeadlessNet
public HeadlessNet(HeadlessApplicationConfiguration configuration)
-
-
Method Detail
-
sendHttpRequest
public void sendHttpRequest(com.badlogic.gdx.Net.HttpRequest httpRequest, com.badlogic.gdx.Net.HttpResponseListener httpResponseListener)- Specified by:
sendHttpRequestin interfacecom.badlogic.gdx.Net
-
cancelHttpRequest
public void cancelHttpRequest(com.badlogic.gdx.Net.HttpRequest httpRequest)
- Specified by:
cancelHttpRequestin interfacecom.badlogic.gdx.Net
-
newServerSocket
public com.badlogic.gdx.net.ServerSocket newServerSocket(com.badlogic.gdx.Net.Protocol protocol, java.lang.String hostname, int port, com.badlogic.gdx.net.ServerSocketHints hints)- Specified by:
newServerSocketin interfacecom.badlogic.gdx.Net
-
newServerSocket
public com.badlogic.gdx.net.ServerSocket newServerSocket(com.badlogic.gdx.Net.Protocol protocol, int port, com.badlogic.gdx.net.ServerSocketHints hints)- Specified by:
newServerSocketin interfacecom.badlogic.gdx.Net
-
newClientSocket
public com.badlogic.gdx.net.Socket newClientSocket(com.badlogic.gdx.Net.Protocol protocol, java.lang.String host, int port, com.badlogic.gdx.net.SocketHints hints)- Specified by:
newClientSocketin interfacecom.badlogic.gdx.Net
-
openURI
public boolean openURI(java.lang.String URI)
- Specified by:
openURIin interfacecom.badlogic.gdx.Net
-
-