This topic describes how to get and set IP addresses.
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:
Note: Usually IP address are automatically allocated to client applications when a dial-up connection is established.
The RSocket::LocalName() function is used to get the local IP address and the port.
The RSocket::RemoteName() function is used to get the remote IP address and the port
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 .
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.