Fixed initialization of SocketResources
Fixed a crash
Added some missing function aliases