I use Indy under Free Pascal , and have no problems. It's the best library I have found so far.

The JEDI-SDL sdl_net headers give you cross platform socket support, and they work very well.