Syntax
VM_RESULT vm_soc_get_account_localip(
    VMINT8 sock, 
    VMUINT8* local_ip
);
ContentsIndex
PreviousUpNext
vm_soc_get_account_localip
Example
Syntax
VM_RESULT vm_soc_get_account_localip(
    VMINT8 sock, 
    VMUINT8* local_ip
);
Description

Gets the local IP held by the socket as specified.

Parameters
Parameters 
Description 
VMINT8 sock 
[IN] Socket descriptor. 
VMUINT8* local_ip 
[OUT] Contains the IP address on return of this function. 
Return Values
Return Values 
Description 
VM_SOC_SUCCESS 
Get IP address successfully.
 
VM_SOC_INVAL 
Invalid argument, e.g. local_ip is NULL.
 
VM_SOC_BEARER_FAIL 
Bearer is not activated.
 
VM_SOC_INVALID_SOCKET 
Invalid socket.
 
VM_SOC_INVALID_ACCOUNT 
Invalid account. 
Example
static VMUINT8 ip[4];
VMINT result;
result = vm_soc_get_account_localip(fd, ip);
if (result == VM_SOC_SUCCESS)
{
    // Gets the local IP address successfully.
}
File

vmsock.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.