// UDP 函数末尾
mtk/platform/libcore / ojluni/src/main/java/java/net/DatagramSocket.java
public void send(DatagramPacket p) throws IOException {
…
System.out.println("[datagram socket] send "+ p.getAddress() + ", port " + p.getPort());
}
// TCP 函数末尾
mtk/platform/libcore / ojluni/src/main/java/java/net/Socket.java
public void connect(SocketAddress endpoint, int timeout) throws IOException {
…
System.out.println("[socket] connection "+ endpoint + “,LocalPort=” + getLocalPort() + “(” + timeout + “)”);
}