代码搜索:getHostAddress
找到约 67 项符合「getHostAddress」的源代码
代码结果 67
www.eeworm.com/read/115889/6116346
java connection.java
/**
* Copyright (C) 2003 Manfred Andres
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by th
www.eeworm.com/read/162634/5515003
java serverconfiguration.java
/* Copyright (c) 2001-2005, The HSQL Development Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that
www.eeworm.com/read/162019/5549075
java aodvmessage.java
/*
JAdhoc ver 0.11 - Java AODV (RFC 3561) Protocol Handler
Copyright 2003-2004 ComNets, University of Bremen
This program is free software; you can redistribute it and/or
modify it under the terms o
www.eeworm.com/read/162019/5549091
java rreqidlist.java
/*
JAdhoc ver 0.11 - Java AODV (RFC 3561) Protocol Handler
Copyright 2003-2004 ComNets, University of Bremen
This program is free software; you can redistribute it and/or
modify it under the terms o
www.eeworm.com/read/162018/5549131
java rreqidlist.java
/*
JAdhoc ver 0.2 - Java AODV (RFC 3561) Protocol Handler
Copyright 2003-2004 ComNets, University of Bremen
This program is free software; you can redistribute it and/or
modify it under the terms of
www.eeworm.com/read/157111/5607297
java serverconfiguration.java
/* Copyright (c) 2001-2005, The HSQL Development Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that
www.eeworm.com/read/432942/8561147
m resolveip.m
% 创建InetAddress对象
function resolveip(input)
try
address = java.net.InetAddress.getByName(input);
catch
error(sprintf('Unknown host %s.', input));
end
% 获取域名或IP
hostname = char(address.getH
www.eeworm.com/read/385935/8776711
java tcptest.java
import java.net.*;
///创建一个InetAddress类对象ip
///通过getHostName方法获得主机名
///通过getHostAddress方法获得主机的IP地址
///通过getLocalHost().getHostAddress获取方法本机的IP地址
public class tcptest
{
public static void main
www.eeworm.com/read/285107/8869254
java ipaddress1.java
import java.net.*;
public class IpAddress1{
public static void main(String[] args){
InetAddress ip=null;
try{
ip=InetAddress.getByName("java.pukyung.co.kr");
System.out.pri
www.eeworm.com/read/181679/9241576
java localhostdemo.java
import java.net.*;
public class LocalHostDemo
{ public static void main(String args[])
{System.out.println ("Looking up local host");
try
{ InetAddress localAddress = InetAddress.getLocalHo