示例#1
0
/* Destroy a socket */
sint32_t destroySocket(pal_socket_t sfd)
{
  pal_shutdown( sfd, PAL_SOCK_SHTDN_BOTH );
  pal_closesocket( sfd );

  return 0;
}
示例#2
0
文件: net_tcp6.c 项目: keenser/Maiccu
sint32_t NetTCP6Close( pal_socket_t Socket )
{
  pal_shutdown( Socket, PAL_SOCK_SHTDN_BOTH );
  return pal_closesocket( Socket );
}