DRI Client and Server Code