Microsoft SDK for Java

NetIORequest Class Constructors

The NetIORequest Class contains the following constructors:

NetIORequest(int accesstype, String hostname)
NetIORequest(int accesstype, String hostname, int port)
NetIORequest(int accesstype, int port)
NetIORequest(int accesstype, InetAddress addr, int ttl)
NetIORequest(int accesstype, InetAddress addr)

NetIORequest(int accesstype, String hostname)

Creates a networking I/O request that specifies an attempt to connect to the specified host or to receive connections from the specified host.

Syntax

public NetIORequest(int accesstype, String hostname);

Parameters

accesstype The type of access requested.
hostname The name of the host.

NetIORequest(int accesstype, String hostname, int port)

Creates a networking I/O request that specifies an attempt to connect to the specified host/port or to receive connections from the specified host on the specified port.

Syntax

public NetIORequest(int accesstype, String hostname, int port);

Parameters

accesstype The type of access requested. The value must be CONNECT or ACCEPT.
hostname The network host to access.
port The port to access.

NetIORequest(int accesstype, int port)

Creates a networking I/O request that specifies an attempt to listen for networking connections on the specified port.

Syntax

public NetIORequest(int accesstype, int port);

Parameters

accesstype The type of access requested. The value should be LISTEN.
port The local port number to listen on.

NetIORequest(int accesstype, InetAddress addr, int ttl)

Creates a networking I/O request that specifies an attempt to perform a multicast operation to the specified Internet address with the specified time to live value.

Syntax

public NetIORequest(int accesstype, InetAddress addr, int ttl);

Parameters

accesstype The type of access requested. The value should be MULTICAST.
addr The Internet address.
ttl The time to live value.

NetIORequest(int accesstype, InetAddress addr)

Creates a networking I/O request that specifies an attempt to perform a multicast operation to the specified Internet address.

Syntax

public NetIORequest(int accesstype, InetAddress addr);

Parameters

accesstype The type of access requested. The value should be MULTICAST.
addr The Internet address.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.