Skip to content

Commit

Permalink
additional fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed May 7, 2024
1 parent d8d8c89 commit d348547
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cpp/src/Ice/ios/StreamEndpointI.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# include "../ProtocolInstance.h"
# include "../WSEndpoint.h"
# include "Ice/InstanceF.h"
# include "Ice/ServerAuthenticationOptions.h"
# include "Ice/SSL/ServerAuthenticationOptions.h"
# include "Ice/UniqueRef.h"

# include <CFNetwork/CFNetwork.h>
Expand Down
2 changes: 1 addition & 1 deletion matlab/lib/+Ice/SecurityException.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% SecurityException Summary of SecurityException
%
% This exception indicates a failure in a security subsystem, such as the IceSSL plug-in.
% This exception indicates a failure in a security subsystem, such as the SSL transport.
%
% SecurityException Properties:
% reason - The reason for the failure.
Expand Down
10 changes: 5 additions & 5 deletions matlab/src/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace

string type = "other";

shared_ptr<Ice::IPConnectionInfo> ipInfo = dynamic_pointer_cast<Ice::IPConnectionInfo>(info);
auto ipInfo = dynamic_pointer_cast<Ice::IPConnectionInfo>(info);
if (ipInfo)
{
type = "ip";
Expand All @@ -82,7 +82,7 @@ namespace
mxSetFieldByNumber(r, 0, Field::RemotePort, createInt(ipInfo->remotePort));
}

shared_ptr<Ice::UDPConnectionInfo> udpInfo = dynamic_pointer_cast<Ice::UDPConnectionInfo>(info);
auto udpInfo = dynamic_pointer_cast<Ice::UDPConnectionInfo>(info);
if (udpInfo)
{
type = "udp";
Expand All @@ -92,22 +92,22 @@ namespace
mxSetFieldByNumber(r, 0, Field::SndSize, createInt(udpInfo->sndSize));
}

shared_ptr<Ice::TCPConnectionInfo> tcpInfo = dynamic_pointer_cast<Ice::TCPConnectionInfo>(info);
auto tcpInfo = dynamic_pointer_cast<Ice::TCPConnectionInfo>(info);
if (tcpInfo)
{
type = "tcp";
mxSetFieldByNumber(r, 0, Field::RcvSize, createInt(tcpInfo->rcvSize));
mxSetFieldByNumber(r, 0, Field::SndSize, createInt(tcpInfo->sndSize));
}

shared_ptr<Ice::WSConnectionInfo> wsInfo = dynamic_pointer_cast<Ice::WSConnectionInfo>(info);
auto wsInfo = dynamic_pointer_cast<Ice::WSConnectionInfo>(info);
if (wsInfo)
{
type = "ws";
mxSetFieldByNumber(r, 0, Field::Headers, createStringMap(wsInfo->headers));
}

shared_ptr<IceSSL::ConnectionInfo> sslInfo = dynamic_pointer_cast<IceSSL::ConnectionInfo>(info);
auto sslInfo = dynamic_pointer_cast<Ice::SSL::ConnectionInfo>(info);
if (sslInfo)
{
type = "ssl";
Expand Down
2 changes: 1 addition & 1 deletion matlab/src/Endpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace
mxSetFieldByNumber(r, 0, Field::Resource, createStringFromUTF8(wsInfo->resource));
}

if (dynamic_pointer_cast<IceSSL::EndpointInfo>(info))
if (dynamic_pointer_cast<Ice::SSL::EndpointInfo>(info))
{
mxSetFieldByNumber(r, 0, Field::InfoType, createInt(Ice::SSLEndpointType));
}
Expand Down
2 changes: 1 addition & 1 deletion matlab/src/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ IceMatlab::createByteList(const vector<byte>& bytes)
}

mxArray*
IceMatlab::createCertificateList(const vector<IceSSL::CertificatePtr>& certs)
IceMatlab::createCertificateList(const vector<Ice::SSL::CertificatePtr>& certs)
{
auto r = mxCreateCellMatrix(1, static_cast<int>(certs.size()));
mwIndex i = 0;
Expand Down
2 changes: 1 addition & 1 deletion matlab/src/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace IceMatlab
void getStringList(mxArray*, std::vector<std::string>&);
mxArray* createByteArray(const std::byte*, const std::byte*);
mxArray* createByteList(const std::vector<std::byte>&);
mxArray* createCertificateList(const std::vector<IceSSL::CertificatePtr>&);
mxArray* createCertificateList(const std::vector<Ice::SSL::CertificatePtr>&);

std::string idToClass(const std::string&);

Expand Down

0 comments on commit d348547

Please sign in to comment.