Error 10022 means: An invalid argument was supplied (WSAEINVAL)
You can see more here: http://forum.avast.com/index.php?board=2;action=display;threadid=2760 http://forum.avast.com/index.php?board=2;action=display;threadid=5595 http://forum.avast.com/index.php?board=2;action=display;threadid=4279
Hope this helps