Socket address java методы

Socket address java методы

Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.

Uses of SocketAddress in com.sun.nio.sctp

Returns the source socket address if the message has been received, otherwise the preferred destination of the message to be sent.

Returns all of the remote addresses to which the given association on this channel’s socket is connected.

Uses of SocketAddress in java.net

This class implements an IP Socket Address (IP address + port number) It can also be a pair (hostname + port number), in which case an attempt will be made to resolve the hostname.

Gets the SocketAddress (usually IP address + port number) of the remote host that this packet is being sent to or is coming from.

Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram is being sent.

Constructs a datagram packet for sending packets of length length with offset ioffset to the specified port number on the specified host.

Constructs a datagram packet for sending packets of length length to the specified port number on the specified host.

Uses of SocketAddress in java.nio.channels

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.

Источник

Uses of Class
java.net.SocketAddress

Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.

Uses of SocketAddress in com.sun.nio.sctp

Returns the source socket address if the message has been received, otherwise the preferred destination of the message to be sent.

Returns all of the remote addresses to which the given association on this channel’s socket is connected.

Uses of SocketAddress in java.net

This class implements an IP Socket Address (IP address + port number) It can also be a pair (hostname + port number), in which case an attempt will be made to resolve the hostname.

Returns the SocketAddress (usually IP address + port number) of the remote host that this packet is being sent to or is coming from.

Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram is being sent.

Constructs a datagram packet for sending packets of length length with offset offset to the specified port number on the specified host.

Constructs a datagram packet for sending packets of length length to the specified port number on the specified host.

Uses of SocketAddress in java.nio.channels

AsynchronousSocketChannel. connect (SocketAddress remote, A attachment, CompletionHandler handler)

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.

Источник

Socket address java методы

Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.

Uses of SocketAddress in java.net

This class implements an IP Socket Address (IP address + port number) It can also be a pair (hostname + port number), in which case an attempt will be made to resolve the hostname.

Gets the SocketAddress (usually IP address + port number) of the remote host that this packet is being sent to or is coming from.

Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram is being sent.

Constructs a datagram packet for sending packets of length length with offset ioffset to the specified port number on the specified host.

Constructs a datagram packet for sending packets of length length to the specified port number on the specified host.

Uses of SocketAddress in java.nio.channels

Methods in java.nio.channels that return SocketAddress
Modifier and Type Method and Description
abstract SocketAddress AsynchronousSocketChannel. getLocalAddress ()

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

Источник

Читайте также:  Индексация массивов в java
Оцените статью