PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspnet_resolver.h File Reference
#include <netinet/in.h>
#include <pspkerneltypes.h>
Include dependency graph for pspnet_resolver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int sceNetResolverInit (void)
 Inititalise the resolver library.
 
int sceNetResolverCreate (int *rid, void *buf, SceSize buflen)
 Create a resolver object.
 
int sceNetResolverDelete (int rid)
 Delete a resolver.
 
int sceNetResolverStartNtoA (int rid, const char *hostname, struct in_addr *addr, unsigned int timeout, int retry)
 Begin a name to address lookup.
 
int sceNetResolverStartAtoN (int rid, const struct in_addr *addr, char *hostname, SceSize hostname_len, unsigned int timeout, int retry)
 Begin a address to name lookup.
 
int sceNetResolverStop (int rid)
 Stop a resolver operation.
 
int sceNetResolverTerm (void)
 Terminate the resolver library.
 

Function Documentation

◆ sceNetResolverCreate()

int sceNetResolverCreate ( int rid,
void buf,
SceSize  buflen 
)

Create a resolver object.

Parameters
rid- Pointer to receive the resolver id
buf- Temporary buffer
buflen- Length of the temporary buffer
Returns
0 on success, < 0 on error

◆ sceNetResolverDelete()

int sceNetResolverDelete ( int  rid)

Delete a resolver.

Parameters
rid- The resolver to delete
Returns
0 on success, < 0 on error

◆ sceNetResolverInit()

int sceNetResolverInit ( void  )

Inititalise the resolver library.

Returns
0 on sucess, < 0 on error.

◆ sceNetResolverStartAtoN()

int sceNetResolverStartAtoN ( int  rid,
const struct in_addr addr,
char hostname,
SceSize  hostname_len,
unsigned int  timeout,
int  retry 
)

Begin a address to name lookup.

Parameters
rid-Resolver id
addr- Pointer to the address to resolve
hostname- Buffer to receive the name
hostname_len- Length of the buffer
timeout- Number of seconds before timeout
retry- Number of retries
Returns
0 on success, < 0 on error

◆ sceNetResolverStartNtoA()

int sceNetResolverStartNtoA ( int  rid,
const char hostname,
struct in_addr addr,
unsigned int  timeout,
int  retry 
)

Begin a name to address lookup.

Parameters
rid- Resolver id
hostname- Name to resolve
addr- Pointer to in_addr structure to receive the address
timeout- Number of seconds before timeout
retry- Number of retires
Returns
0 on success, < 0 on error

◆ sceNetResolverStop()

int sceNetResolverStop ( int  rid)

Stop a resolver operation.

Parameters
rid- Resolver id
Returns
0 on success, < 0 on error

◆ sceNetResolverTerm()

int sceNetResolverTerm ( void  )

Terminate the resolver library.

Returns
0 on success, < 0 on error