send系统调用只是对sendto系统调用进行了封装,传递的参数不包含目的地址信息,数据会发送到已经建立连接的另一端的地址;

1 /*
2  *    Send a datagram down a socket.
3  */
4 
5 SYSCALL_DEFINE4(send, int, fd, void __user *, buff, size_t, len,
6         unsigned int, flags)
7 {
8     return sys_sendto(fd, buff, len, flags, NULL, 0);
9 }

 

sendto系统调用,请移步<套接字之sendto系统调用>;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案