@marcoschwartz and @TheCon, this should be no problem.
I haven't tested this, but here's some demo code from TI that opens a connection and sends some data:
mySocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
tSocketAddr.sa_family = AF_INET;
tSocketAddr.sa_data[0] = (port & 0xFF00) >> 8;
tSocketAddr.sa_data[1] = (port & 0x00FF);
tSocketAddr.sa_data[2] = 207; // First octet of destination IP
tSocketAddr.sa_data[3] = 58; // Second Octet of destination IP
tSocketAddr.sa_data[4] = 147; // Third Octet of destination IP
tSocketAddr.sa_data[5] = 66; // Fourth Octet of destination IP
connect(mySocket, &tSocketAddr, sizeof(tSocketAddr));
send(mySocket, cmdBuf, strlen(cmdBuf), 0); // the 4th parameter is 'flags', but not currently supported
closesocket(mySocket);
I will add a working example to the library for the next revision.