PSPSDK 2025-04-22
Loading...
Searching...
No Matches
pspnet_resolver.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspnet_resolver.h - PSP networking libraries.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
9 *
10 * Portions based on PspPet's wifi_03 sample code.
11 *
12 */
13
14#ifndef PSPNET_RESOLVER_H
15#define PSPNET_RESOLVER_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include <netinet/in.h>
22#include <pspkerneltypes.h>
23#include <psptypes.h>
24
31
41int sceNetResolverCreate(int *rid, void *buf, SceSize buflen);
42
51
63int sceNetResolverStartNtoA(int rid, const char *hostname, struct in_addr* addr, unsigned int timeout, int retry);
64
77int sceNetResolverStartAtoN(int rid, const struct in_addr* addr, char *hostname, SceSize hostname_len, unsigned int timeout, int retry);
78
86int sceNetResolverStop(int rid);
87
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif /* PSPNET_RESOLVER_H */
int sceNetResolverTerm(void)
Terminate the resolver library.
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 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 sceNetResolverStop(int rid)
Stop a resolver operation.
unsigned int SceSize
Definition psptypes.h:103
Definition in.h:133