diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-3AAE78A4-75C5-5607-8775-43DFB43DCFE8.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-3AAE78A4-75C5-5607-8775-43DFB43DCFE8.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,35 @@ + + + + + +Getting +and Setting IP Addresses TutorialThis topic describes how to get and set IP addresses. + +
Introduction

To establish a connection with the +host, the IP addresses must be determined and set. The IP address can be local +or remote. This tutorial describes the following:

    +
  • How to Get a Local IP Address

  • +
  • How to Get a Remote IP Address

  • +
  • How to Set the Local IP Address

  • +

Note: Usually IP address are automatically allocated to client +applications when a dial-up connection is established.

+
How to Get +a Local IP Address

The RSocket::LocalName() function +is used to get the local IP address and the port.

+
How to Get +a Remote IP Address

The RSocket::RemoteName() function +is used to get the remote IP address and the port

+
How to Set +the Local IP Address

The RSocket::Bind() function +is used to set the local IP address and the port. This call must be made by +server applications before calling RSocket::Listen(). To +get and set the IP address, the <code>anAddr</code> argument must be +of the class . TInetAddr.

+
\ No newline at end of file