Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <INET.H>
Link against: estlib.lib

inet_network

inet_network inet_addr

Description

[Top]


inet_addr(const char *)

IMPORT_C unsigned long inet_addr(const char *);

Description

Ascii internet address interpretation routine.

Parameters

const char *

ascii representation of an Internet address

Return value

unsigned long

The value returned is in network order.

[Top]


inet_aton(const char *,struct in_addr *)

IMPORT_C int inet_aton(const char *, struct in_addr *);

Description

Check whether "cp" is a valid ascii representation of an Internet address and convert to a binary address. This replaces inet_addr, the return value from which cannot distinguish between failure and a local broadcast address.

Parameters

const char *

ascii representation of an Internet address

struct in_addrin_addr *

internet address

Return value

int

1 if the address is valid, 0 if not.

[Top]


inet_lnaof(struct)

IMPORT_C unsigned long inet_lnaof(struct in_addr);

Description

Return the local network address portion of an internet address; handles class a/b/c network number formats.

Parameters

struct in_addr

Return value

unsigned long

the local network address portion of an internet address

[Top]


inet_makeaddr(u_long,u_long)

IMPORT_C struct in_addr inet_makeaddr(u_long, u_long);

Description

Parameters

u_longu_long

u_longu_long

Return value

struct in_addrin_addr

[Top]


inet_netof(struct)

IMPORT_C unsigned long inet_netof(struct in_addr);

Description

Parameters

struct in_addr

Return value

unsigned long

the network number from an internet address; handles class a/b/c network #'s.

[Top]


inet_ntoa(struct)

IMPORT_C char* inet_ntoa(struct in_addr);

Description

Parameters

struct in_addr

Return value

char *