Ah, didn't realize that the constructor was going to take in a connection - thought it was going to take in a host and a port and create the connection automatically. That makes sense, then.