Input/Output Learning Mode

What function would you use to open a socket connection manually with the purpose of communicating with a server not supported by a file wrapper?