intmain(){// 创建 unix domain socketintfd=socket(AF_UNIX,SOCK_STREAM,0);// 绑定监听char*socket_path="./server.sock";strcpy(serun.sun_path,socket_path);bind(fd,serun,...);listen(fd,128);while(1){//接收新连接conn=accept(fd,...);//收发数据read(conn,...);write(conn,...);}...