Maybe something like this, though I am not very sure.
Nah, I think Curl is a bit too limited for the OP's purposes. Curl was built more for file transfer, not port scanning.
Can't think of much, however at least look for something that's C++ based, such as this wrapper for the C berkeley sockets: http://www.alhem.net/Sockets/
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.