int soc;
listen(soc_waiting, 1);
soc = accept(soc_waiting, NULL, NULL);

hoge(soc){
}
みたいにsocをサブルーチンの引数にするときは
hoge(FILE *i)ですか?
hoge(int *p)ですか?