如何将接受的套接字作为参数发送到函数这里是代码:
//accept connection
accept_sock = accept(sock_con,(struct sockaddr *)&info,&sizeof_accept);
//Create a new process
int pid = fork();
if (pid == 0)
{
//close the socket
close(sock_con);
request_handle(accept_sock); ** here i wanna send the socket to that function*
}
声明此函数时该套接字的数据类型是什么?
function request_handle(what is the datatype pointed here){
}