int socket(int domain, int type, int protocol);
詳細はman socketで。
sock = socket(AF_INET, SOCK_STREAM, 0);