Supporting binding to dns names.
Added typedefs to shorten types.
Implemented socket example.