Class SessionInfo

Inheritance Relationships

Base Type

Class Documentation

class SessionInfo : public eipScanner::SessionInfoIf

Implementation of EIP session.

Public Types

using SPtr = std::shared_ptr<SessionInfo>

Public Functions

SessionInfo(const std::string &host, int port, const std::chrono::milliseconds &timeout)

Establishes an EIP session with an EIP adapter.

Parameters
  • host: The IP address of the adapter

  • port: The port of the adapter

  • timeout: timout to connect and receive the response

Exceptions
  • std::runtime_error:

  • std::system_error:

SessionInfo(const std::string &host, int port)

Establishes an EIP session with an EIP adapter.

Parameters
  • host: The IP address of the adapter

  • port: The port of the adapter

Exceptions
  • std::runtime_error:

  • std::system_error:

~SessionInfo()

Default destructor.

EncapsPacket sendAndReceive(const eip::EncapsPacket &packet) const

See

SessionInfo::sendAndReceive

Return

Parameters
  • packet:

cip::CipUdint getSessionHandle() const

See

SessionInfo::getSessionHandle

Return

sockets::EndPoint getRemoteEndPoint() const

See

SessionInfo::getRemoteEndPoint

Return