2

I'm looking for an example of how to use the AndroidAsync library to create a simple Socket or DatagramSocket. The sample in the git repo, the tests, and the examples on the homepage don't seem to cover this use case. I see the SocketChannelWrapper and DatagramChannelWrapper classes, but they don't seem to have public constructors.

skunkwerk
  • 2,920
  • 2
  • 37
  • 55

1 Answers1

1

I believe this could be done using the AsyncServer.connectSocket and AsyncServer.connectDatagram methods. Additionaly, an AsyncSSLSocketWrapper can be used to implement SSL.

Eliezer
  • 7,209
  • 12
  • 56
  • 103