summaryrefslogtreecommitdiff
path: root/matlab/lib/+Ice/IPConnectionInfo.m
blob: 6dfd2cee2b738f99d4fec85c6813704dc9963ef4 (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
45
46
47
classdef IPConnectionInfo < Ice.ConnectionInfo
    % IPConnectionInfo   Summary of IPConnectionInfo
    %
    % Provides access to the connection details of an IP connection.
    %
    % IPConnectionInfo Properties:
    %   localAddress - The local address.
    %   localPort - The local port.
    %   remoteAddress - The remote address.
    %   remotePort - The remote port.

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

    methods
        function obj = IPConnectionInfo(underlying, incoming, adapterName, connectionId, localAddress, localPort, ...
                                        remoteAddress, remotePort)
            if nargin == 0
                underlying = [];
                incoming = false;
                adapterName = '';
                connectionId = '';
                localAddress = '';
                localPort = 0;
                remoteAddress = '';
                remotePort = 0;
            end
            obj = obj@Ice.ConnectionInfo(underlying, incoming, adapterName, connectionId);
            obj.localAddress = localAddress;
            obj.localPort = localPort;
            obj.remoteAddress = remoteAddress;
            obj.remotePort = remotePort;
        end
    end
    properties(SetAccess=private)
        % localAddress - The local address.
        localAddress char

        % localPort - The local port.
        localPort int32

        % remoteAddress - The remote address.
        remoteAddress char

        % remotePort - The remote port.
        remotePort int32
    end
end