RakNet is like DirectX, but for networking instead of graphics.
To correct you, its Direct3D, not DirectX. DirectX is a collection of APIs (Direct3D for graphics, DirectSound for sounds, ..) and isn't graphics only. Iam sure you knew this before, so it was only typo.