If you have library for the gui there's maybe some class available for Socket (I'm thinking about QT or wxWindow) that can simplify you a lot the programming of socket (even if socket is normaly almost plateform indenpendant).
The main problem with socket in platform indenpendant programming is that you usually need thread and this is not platform indenpendant.
If you want a library you can take a look at OpenTop for socket and thread (GPL)
OpenTop
or at boost
Boost library
Both are cross-platform
You can also use STDIN and STDOUT (or STDERR) but this is annoying if you have an only console mode.
Hope this help