public class MxNPortService
extends java.lang.Object
| Constructor and Description |
|---|
MxNPortService() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<MxNPort> |
getNPortInfoList()
Builds and returns a new List<
MxNPort> from the connected NPort in
the same subnet, or returns null if a NPort is not available in
system. |
public static java.util.List<MxNPort> getNPortInfoList()
MxNPort> from the connected NPort in
the same subnet, or returns null if a NPort is not available in
system. The ports are sorted in the sequence they are discovered.
Example:
// Get a MxNPort list from current network
List<MxNPort> mNPortList = MxNPortService.getNPortInfoList();
if( mNPortList!=null ){
// Process more tasks
}
MxNPort>, or null if no NPort is found.