javase
Ace_Yu
这个作者很懒,什么都没留下…
展开
-
获取网卡IP与MAC地址
import java.net.Inet4Address;import java.net.InetAddress;import java.net.InterfaceAddress;import java.net.NetworkInterface;import java.net.SocketException;import java.util.ArrayList;import java.原创 2012-07-12 11:54:45 · 1263 阅读 · 0 评论 -
Working with Multicast Sockets
public static void send() throws IOException { InetAddress ia = InetAddress.getByName("239.12.2.2"); byte[] data = "Here's some multicast data\r\n".getBytes(); int port = 5555; byte ttl = 1转载 2012-09-13 18:17:04 · 612 阅读 · 0 评论