如何获取网络接口类型 [英] How to get the network interface type

查看:93
本文介绍了如何获取网络接口类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用java标识网络接口类型.提出此问题的原因是,某些Sun硬件盒组具有用于内部通信的特殊类型的接口(DSCP接口).我们有一个为Solaris平台开发的应用程序,我只想打印非内部通用接口.

Is there an option to identify the network interface type in java. The reason for asking this question is some set of Sun hardware boxes have a special kind of interface (DSCP interface) used for internal communication. We have an application developed for Solaris platform and I want to print only non-internal common interfaces.

了解有关DSCP的更多信息
http://blogs.oracle.com/olympus/entry/dscp

To know more about DSCP
http://blogs.oracle.com/olympus/entry/dscp

推荐答案

我知道这并不是一个很好的答案,但这是一个详细介绍 NetworkInterface也可能有用API .在本教程中,有一些可行的示例将使您对该主题有更多的了解.

I know this isn't much of an answer, but here's a tutorial that details Programmatic Access to Network Parameters. That being said, it may also be useful to consult the NetworkInterface API. Within the tutorial, there's a few working examples that will shed more light on the subject.

这篇关于如何获取网络接口类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆