Fixed some bugs in the socket port server and renamed some examples.