summaryrefslogtreecommitdiff
path: root/matlab/lib/+Ice/ConnectionInfo.m
blob: 7e8145de076062cf06da9e9b44c0f97ccc6511bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
classdef ConnectionInfo < handle
    % ConnectionInfo   Base class providing access to the connection details.
    %
    % ConnectionInfo Properties:
    %   underlying (Ice.ConnectionInfo) - The information of the underyling
    %     transport or an empty array if there's no underlying transport.
    %   incoming (logical) - Whether or not the connection is an incoming or
    %     outgoing connection.
    %   adapterName (char) - The name of the adapter associated with the
    %     connection.
    %   connectionId (char) - The connection id.

    % Copyright (c) ZeroC, Inc. All rights reserved.

    methods
        function obj = ConnectionInfo(underlying, incoming, adapterName, connectionId)
            if nargin == 0
                underlying = [];
                incoming = false;
                adapterName = '';
                connectionId = '';
            end
            obj.underlying = underlying;
            obj.incoming = incoming;
            obj.adapterName = adapterName;
            obj.connectionId = connectionId;
        end
    end
    properties(SetAccess=private)
        % underlying   The information of the underyling transport or null
        %   if there's no underlying transport.
        underlying

        % incoming   Whether or not the connection is an incoming or outgoing
        %   connection.
        incoming logical

        % adapter   The name of the adapter associated with the connection.
        adapterName char

        % connectionId   The connection id.
        connectionId char
    end
end