Archived

This forum has been archived. Please start a new discussion on GitHub.

Not receiving data on iPhone

deepanshu_40
edited October 2019 in Comments

Hi,

I'm running client on iPhone and server on Mac, using Ice 3.7. Both client and server are connected to the same router. I'm not able to receive data on iPhone.

Here's the runtime error that I'm getting:

src/Ice/PropertiesI.cpp:399: ::Ice::FileException:
file exception: No such file or directory
path: config.client

The ip here is - 192.168.43.88

Here is the config.client & config.server file that I'm using:

#######config.client:

#
# The client reads this property to create the reference to the
# "CallbackSender" object in the server.
#
#CallbackSender.Proxy=sender:tcp -p 10000
CallbackSender.Proxy=sender:tcp -h 192.168.43.88 -p 50051

#
# Uncomment to use the WebSocket transport instead.
#
#CallbackSender.Proxy=sender:ws -p 10002

#
# Only connect to the localhost interface by default.
#
#Ice.Default.Host=localhost
#Ice.Default.Host=CallbackSender.Proxy

#
# Warn about connection exceptions
#
Ice.Warn.Connections=1

#
# Network Tracing
#
# 0 = no network tracing
# 1 = trace connection establishment and closure
# 2 = like 1, but more detailed
# 3 = like 2, but also trace data transfer
#
Ice.Trace.Network=2

"config.client" 40L, 794C
#######config.server:

#
# The server creates one single object adapter with the name
# "Callback.Server". The following line sets the endpoints for this
# adapter.
#
#Callback.Server.Endpoints=tcp -p 10000:ws -p 10002
Callback.Server.Endpoints=tcp -h 192.168.43.88 -p 50051:ws -p 10002

#
# Only listen on the localhost interface by default.
#
#Ice.Default.Host=localhost

#
# Warn about connection exceptions
#
Ice.Warn.Connections=1

#
# Network Tracing
#
# 0 = no network tracing
# 1 = trace connection establishment and closure
# 2 = like 1, but more detailed
# 3 = like 2, but also trace data transfer
#
Ice.Trace.Network=2

#
# Protocol Tracing
#
# 0 = no protocol tracing
# 1 = trace protocol messages
"config.server" 35L, 711C

Comments

  • benoit
    benoit Rennes, France

    Hi,

    The exception indicates that your client fails to load the config.client file. If you want to use a configuration file with your iOS client I recommend checking out how the objective-c/iOS/library demo is setup. You'll need to add the file to the project resource and explicitly load the file from the code. Another option is to not use a configuration file but instead set properties in the code.

    Cheers,
    Benoit.

  • Apologies, it was my mistake. I did not deployed it properly. Anyways, thanks for the support. :)