Reputation: 3070
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.
Upvotes: 2
Views: 1595
Reputation: 7347
I believe this could be done using the AsyncServer.connectSocket
and AsyncServer.connectDatagram
methods. Additionaly, an AsyncSSLSocketWrapper
can be used to implement SSL.
Upvotes: 1