Package org.apache.ignite.spi.discovery.tcp

## Class TcpDiscoveryIoSession

- java.lang.Object
- - org.apache.ignite.spi.discovery.tcp.TcpDiscoveryIoSession

-     public class TcpDiscoveryIoSession
      extends Object

  Handles I/O operations between discovery nodes in the cluster. This class encapsulates the socket connection used by the `TcpDiscoverySpi` to exchange discovery protocol messages between nodes.

  Currently, there are two modes for message serialization:

  - Using `MessageSerializer` for messages implementing the `Message` interface.
  - Deprecated: Using `JdkMarshaller` for messages that have not yet been refactored.
  A leading byte is used to distinguish between the modes. The byte will be removed in future.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Socket` | `socket()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### socket

          public Socket socket()

      Returns:
        Socket.