my application will be used in that environment:
the server has a real ip,
but the client may be in a LAN , the client doesn't have a real ip ,it connects to WAN
through NAT.
just like a chat software, or other p2p software,
the server has to send messages to client initiatively and continuously.
(that means the server will send messages .At the same time ,the client will accept those messages like a server.)
if i use socket to write my code , i just need use send ,
then, although the client in a LAN ,i can connect to it ,and send messages initiatively.
but now ,i can't get the client 's ip and port in ICE.
how to do when i have to send messages to a client which is in a LAN and don't have a real ip ?
i need the server sends messages initiatively.
is there any example which can let me study?
I have searched the forum .
suggested by the ZEROC'S STAFF is to build client as a server ,
that applies to ones which have real ip ,but my client don't have a real ip .
the actions what i need :
1.server starts
2.client connects to server
3.server sends messages to client initiatively and continuously.

Reply With Quote
