Good eye crisp! I generally only use small variable names, so I'm not sure if parameters are case-sensitive (most likely are), but if that's the case, this is the culprit.
xcali, it's best to build programs like these in stages (e.g., first having nothing but the connection, so you know the...