?? mcast.sgml
字號(hào):
<!-- ##### SECTION Title ##### -->Mcast<!-- ##### SECTION Short_Description ##### -->IP Multicast socket<!-- ##### SECTION Long_Description ##### --><para>The Mcast module provides support for IP Multicast sockets. IPMulticast allows you to send one packet to many receivers at once.Unfortunately, IP Multicast is not widely available. IP Multicast isbuilt on UDP.</para><para>An IP Multicast socket is represented by a #GMcastSocket stucture. Tocreate a #GMcastSocket, call gnet_mcast_socket_new(),gnet_mcast_socket_new_with_port(), or gnet_mcast_socket_new_full().Then call gnet_mcast_socket_join_group() to join a multicast group.To leave the group, call gnet_mcast_socket_leave_group().</para><para>Use gnet_mcast_socket_set_loopback() to set whether packets sent bythe host will also be received by the host. Applications typicallydisable loopback.</para><!-- ##### SECTION See_Also ##### --><para></para><!-- ##### STRUCT GMcastSocket ##### --><para></para><!-- ##### FUNCTION gnet_mcast_socket_new ##### --><para></para>@Returns: <!-- ##### FUNCTION gnet_mcast_socket_new_with_port ##### --><para></para>@port: @Returns: <!-- ##### FUNCTION gnet_mcast_socket_new_full ##### --><para></para>@iface: @port: @Returns: <!-- # Unused Parameters # -->@ia: <!-- ##### FUNCTION gnet_mcast_socket_delete ##### --><para></para>@socket: <!-- # Unused Parameters # -->@ms: <!-- ##### FUNCTION gnet_mcast_socket_ref ##### --><para></para>@socket: <!-- # Unused Parameters # -->@s: <!-- ##### FUNCTION gnet_mcast_socket_unref ##### --><para></para>@socket: <!-- # Unused Parameters # -->@s: <!-- ##### FUNCTION gnet_mcast_socket_get_io_channel ##### --><para></para>@socket: @Returns: <!-- ##### FUNCTION gnet_mcast_socket_get_local_inetaddr ##### --><para></para>@socket: @Returns: <!-- ##### FUNCTION gnet_mcast_socket_join_group ##### --><para></para>@socket: @inetaddr: @Returns: <!-- # Unused Parameters # -->@ms: @ia: <!-- ##### FUNCTION gnet_mcast_socket_leave_group ##### --><para></para>@socket: @inetaddr: @Returns: <!-- # Unused Parameters # -->@ms: @ia: <!-- ##### FUNCTION gnet_mcast_socket_get_ttl ##### --><para></para>@socket: @Returns: <!-- # Unused Parameters # -->@ms: @us: <!-- ##### FUNCTION gnet_mcast_socket_set_ttl ##### --><para></para>@socket: @ttl: @Returns: <!-- # Unused Parameters # -->@ms: @val: <!-- ##### FUNCTION gnet_mcast_socket_send ##### --><para></para>@socket: @buffer: @length: @dst: @Returns: <!-- # Unused Parameters # -->@ms: @data: <!-- ##### FUNCTION gnet_mcast_socket_receive ##### --><para></para>@socket: @buffer: @length: @src: @Returns: <!-- # Unused Parameters # -->@ms: @data: <!-- ##### FUNCTION gnet_mcast_socket_has_packet ##### --><para></para>@socket: @Returns: <!-- # Unused Parameters # -->@s: <!-- ##### FUNCTION gnet_mcast_socket_is_loopback ##### --><para></para>@socket: @Returns: <!-- # Unused Parameters # -->@ms: <!-- ##### FUNCTION gnet_mcast_socket_set_loopback ##### --><para></para>@socket: @enable: @Returns: <!-- # Unused Parameters # -->@ms: @b: <!-- ##### MACRO gnet_mcast_socket_to_udp_socket ##### --><para></para>@MS:
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -