I'm learning about sockets. This code isn't really usefull for anything. You shouldn't use it.