I just need to understand what information I should provide to a c++ code if I had a tunnel session established with the following configuration

I'm on a window 7 computer.
I successfully configured a ssh tunnel session via putty.
In putty, set my local port to be 4000, the remote unix server / port are: remoteName:3000

So I assume my c++ code will now access the remote resource if I use host="localhost" port="4000"?