pgmpc: Add function to set up connection parameters