This project includes a few examples on how to create different types of sockets using AndroidAsync. 
It includes examples for a TCP client/server, TCP client with SSL and UDP client/server.