Created the subnet addres by bitwise anding. Modified the DataStructers of SocketInfo so include sockaddr_in. Will continue working tomorrow.