OO structure for networking module