It's easy, just try it out using a telnet connection.
you can write <HELP> to see the function supported.
Ones you've clear how to use it, exploit the POSIX socket library, witch is portable and, it works also in windows.
Have a look and write here again if you have problems.
Hope that...