Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Bài giảng "Lập trình mạng: Internet Address" cung cấp cho người đọc các kiến thức: Class InetAddress, Class InetAddress - Method, Class InetAddress – Example, Class InetAddress. nội dung chi tiết. | LẬP TRÌNH MẠNG Internet Address Nguyễn Hữu Thể Class InetAddress Class InetAddress truy xuất thông tin hostname hoặc IP. Thư viện java.net Cấu trúc class InetAddress public class InetAddress private string hostname private int address public String getHostName return hostName Class InetAddress - Method InetAddress không có constructor public static InetAddress InetAddress.getByName String hostname Kết nối đến 1 máy chủ tham số là 1 chuỗi ký tự tên máy địa chỉ IP địa chỉ 1 trang web . public static InetAddress InetAddress.getAllByName String hostname Kết quả trả về là 1 mảng đối tượng thuộc kiểu InetAddress public static InetAddress InetAddress.getLocalHost Đọc thông tin của máy cục bộ đang làm .