PSPSDK 2024-10-31
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
30
40int sceNetResolverCreate(int *rid, void *buf, SceSize buflen);
41
50
62int sceNetResolverStartNtoA(int rid, const char *hostname, struct in_addr* addr, unsigned int timeout, int retry);
63
76int sceNetResolverStartAtoN(int rid, const struct in_addr* addr, char *hostname, SceSize hostname_len, unsigned int timeout, int retry);
77
86
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif /* PSPNET_RESOLVER_H */
unsigned int SceSize
Definition pspkerneltypes.h:27
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.
float x
Definition psptypes.h:0
Definition in.h:133