implementing AVL tree

how is an AVL tree implemented and insertions are made to itwenever a new socket is created and deletions are made when the socket is closed or connection is disconnected.how to read and print the names of all the current sockets. Please send the source code.

Is this homework? No body is just going to "send you the source code". Why don't you post the work you've done so far, and maybe someone could help you out with the parts that you've been having trouble with.