first commit

This commit is contained in:
Dan Peori
2010-10-18 12:54:49 -03:00
commit 8a3bef9012
612 changed files with 74685 additions and 0 deletions

101
src/net/Makefile.am Normal file
View File

@@ -0,0 +1,101 @@
libdir = @PSPSDK_LIBDIR@
CC = @PSP_CC@
CCAS = $(CC)
AR = @PSP_AR@
RANLIB = @PSP_RANLIB@
INCLUDES = -I$(top_srcdir)/src/base -I$(top_srcdir)/src/kernel
CFLAGS = @PSPSDK_CFLAGS@
CCASFLAGS = $(CFLAGS) $(INCLUDES)
NET_OBJS = sceNet_0000.o sceNet_0001.o sceNet_0002.o sceNet_0003.o sceNet_0004.o sceNet_0005.o sceNet_0006.o sceNet_0007.o sceNet_0008.o
NETLIB_OBJS = sceNet_lib_0000.o sceNet_lib_0001.o sceNet_lib_0002.o sceNet_lib_0003.o sceNet_lib_0004.o sceNet_lib_0005.o sceNet_lib_0006.o sceNet_lib_0007.o sceNet_lib_0008.o sceNet_lib_0009.o sceNet_lib_0010.o sceNet_lib_0011.o sceNet_lib_0012.o sceNet_lib_0013.o sceNet_lib_0014.o sceNet_lib_0015.o sceNet_lib_0016.o sceNet_lib_0017.o sceNet_lib_0018.o sceNet_lib_0019.o sceNet_lib_0020.o sceNet_lib_0021.o sceNet_lib_0022.o sceNet_lib_0023.o sceNet_lib_0024.o sceNet_lib_0025.o sceNet_lib_0026.o sceNet_lib_0027.o sceNet_lib_0028.o sceNet_lib_0029.o sceNet_lib_0030.o sceNet_lib_0031.o sceNet_lib_0032.o sceNet_lib_0033.o sceNet_lib_0034.o sceNet_lib_0035.o sceNet_lib_0036.o sceNet_lib_0037.o sceNet_lib_0038.o sceNet_lib_0039.o sceNet_lib_0040.o sceNet_lib_0041.o sceNet_lib_0042.o sceNet_lib_0043.o sceNet_lib_0044.o sceNet_lib_0045.o sceNet_lib_0046.o sceNet_lib_0047.o sceNet_lib_0048.o sceNet_lib_0049.o sceNet_lib_0050.o sceNet_lib_0051.o sceNet_lib_0052.o sceNet_lib_0053.o sceNet_lib_0054.o sceNet_lib_0055.o sceNet_lib_0056.o sceNet_lib_0057.o sceNet_lib_0058.o sceNet_lib_0059.o sceNet_lib_0060.o sceNet_lib_0061.o sceNet_lib_0062.o sceNet_lib_0063.o sceNet_lib_0064.o sceNet_lib_0065.o sceNet_lib_0066.o sceNet_lib_0067.o sceNet_lib_0068.o sceNet_lib_0069.o sceNet_lib_0070.o sceNet_lib_0071.o sceNet_lib_0072.o sceNet_lib_0073.o sceNet_lib_0074.o sceNet_lib_0075.o sceNet_lib_0076.o sceNet_lib_0077.o sceNet_lib_0078.o sceNet_lib_0079.o sceNet_lib_0080.o sceNet_lib_0081.o sceNet_lib_0082.o sceNet_lib_0083.o sceNet_lib_0084.o sceNet_lib_0085.o sceNet_lib_0086.o sceNet_lib_0087.o sceNet_lib_0088.o sceNet_lib_0089.o sceNet_lib_0090.o sceNet_lib_0091.o sceNet_lib_0092.o sceNet_lib_0093.o sceNet_lib_0094.o sceNet_lib_0095.o sceNet_lib_0096.o
NET_APCTL_OBJS = sceNetApctl_0000.o sceNetApctl_0001.o sceNetApctl_0002.o sceNetApctl_0003.o sceNetApctl_0004.o sceNetApctl_0005.o sceNetApctl_0006.o sceNetApctl_0007.o sceNetApctl_0008.o
NET_INET_OBJS = sceNetInet_0000.o sceNetInet_0001.o sceNetInet_0002.o sceNetInet_0003.o sceNetInet_0004.o sceNetInet_0005.o sceNetInet_0006.o sceNetInet_0007.o sceNetInet_0008.o sceNetInet_0009.o sceNetInet_0010.o sceNetInet_0011.o sceNetInet_0012.o sceNetInet_0013.o sceNetInet_0014.o sceNetInet_0015.o sceNetInet_0016.o sceNetInet_0017.o sceNetInet_0018.o sceNetInet_0019.o sceNetInet_0020.o sceNetInet_0021.o sceNetInet_0022.o sceNetInet_0023.o sceNetInet_0024.o sceNetInet_0025.o sceNetInet_0026.o sceNetInet_0027.o sceNetInet_0028.o sceNetInet_0029.o sceNetInet_0030.o
NET_RESOLVER_OBJS = sceNetResolver_0000.o sceNetResolver_0001.o sceNetResolver_0002.o sceNetResolver_0003.o sceNetResolver_0004.o sceNetResolver_0005.o sceNetResolver_0006.o sceNetResolver_0007.o
NET_ADHOC_OBJS = sceNetAdhoc_0000.o sceNetAdhoc_0001.o sceNetAdhoc_0002.o sceNetAdhoc_0003.o sceNetAdhoc_0004.o sceNetAdhoc_0005.o sceNetAdhoc_0006.o sceNetAdhoc_0007.o sceNetAdhoc_0008.o sceNetAdhoc_0009.o sceNetAdhoc_0010.o sceNetAdhoc_0011.o sceNetAdhoc_0012.o sceNetAdhoc_0013.o sceNetAdhoc_0014.o sceNetAdhoc_0015.o sceNetAdhoc_0016.o sceNetAdhoc_0017.o sceNetAdhoc_0018.o sceNetAdhoc_0019.o sceNetAdhoc_0020.o sceNetAdhoc_0021.o sceNetAdhoc_0022.o sceNetAdhoc_0023.o sceNetAdhoc_0024.o sceNetAdhoc_0025.o
NET_ADHOCCTL_OBJS = sceNetAdhocctl_0000.o sceNetAdhocctl_0001.o sceNetAdhocctl_0002.o sceNetAdhocctl_0003.o sceNetAdhocctl_0004.o sceNetAdhocctl_0005.o sceNetAdhocctl_0006.o sceNetAdhocctl_0007.o sceNetAdhocctl_0008.o sceNetAdhocctl_0009.o sceNetAdhocctl_0010.o sceNetAdhocctl_0011.o sceNetAdhocctl_0012.o sceNetAdhocctl_0013.o sceNetAdhocctl_0014.o sceNetAdhocctl_0015.o sceNetAdhocctl_0016.o sceNetAdhocctl_0017.o sceNetAdhocctl_0018.o sceNetAdhocctl_0019.o sceNetAdhocctl_0020.o sceNetAdhocctl_0021.o
NET_ADHOCMATCHING_OBJS = sceNetAdhocMatching_0000.o sceNetAdhocMatching_0001.o sceNetAdhocMatching_0002.o sceNetAdhocMatching_0003.o sceNetAdhocMatching_0004.o sceNetAdhocMatching_0005.o sceNetAdhocMatching_0006.o sceNetAdhocMatching_0007.o sceNetAdhocMatching_0008.o sceNetAdhocMatching_0009.o sceNetAdhocMatching_0010.o sceNetAdhocMatching_0011.o sceNetAdhocMatching_0012.o sceNetAdhocMatching_0013.o sceNetAdhocMatching_0014.o sceNetAdhocMatching_0015.o sceNetAdhocMatching_0016.o
HTTP_OBJS = sceHttp_0000.o sceHttp_0001.o sceHttp_0002.o sceHttp_0003.o sceHttp_0004.o sceHttp_0005.o sceHttp_0006.o sceHttp_0007.o sceHttp_0008.o sceHttp_0009.o sceHttp_0010.o sceHttp_0011.o sceHttp_0012.o sceHttp_0013.o sceHttp_0014.o sceHttp_0015.o sceHttp_0016.o sceHttp_0017.o sceHttp_0018.o sceHttp_0019.o sceHttp_0020.o sceHttp_0021.o sceHttp_0022.o sceHttp_0023.o sceHttp_0024.o sceHttp_0025.o sceHttp_0026.o sceHttp_0027.o sceHttp_0028.o sceHttp_0029.o sceHttp_0030.o sceHttp_0031.o sceHttp_0032.o sceHttp_0033.o sceHttp_0034.o sceHttp_0035.o sceHttp_0036.o sceHttp_0037.o sceHttp_0038.o sceHttp_0039.o sceHttp_0040.o sceHttp_0041.o sceHttp_0042.o sceHttp_0043.o sceHttp_0044.o sceHttp_0045.o sceHttp_0046.o sceHttp_0047.o sceHttp_0048.o sceHttp_0049.o sceHttp_0050.o sceHttp_0051.o sceHttp_0052.o sceHttp_0053.o sceHttp_0054.o sceHttp_0055.o sceHttp_0056.o sceHttp_0057.o sceHttp_0058.o sceHttp_0059.o sceHttp_0060.o sceHttp_0061.o sceHttp_0062.o sceHttp_0063.o sceHttp_0064.o sceHttp_0065.o sceHttp_0066.o sceHttp_0067.o sceHttp_0068.o sceHttp_0069.o sceHttp_0070.o sceHttp_0071.o sceHttp_0072.o sceHttp_0073.o sceHttp_0074.o sceHttp_0075.o sceHttp_0076.o sceHttp_0077.o sceHttp_0078.o sceHttp_0079.o sceHttp_0080.o sceHttp_0081.o sceHttp_0082.o sceHttp_0083.o
SSL_OBJS = sceSsl_0000.o sceSsl_0001.o sceSsl_0002.o sceSsl_0003.o sceSsl_0004.o sceSsl_0005.o sceSsl_0006.o sceSsl_0007.o sceSsl_0008.o sceSsl_0009.o sceSsl_0010.o sceSsl_0011.o
libpspnetincludedir = @PSPSDK_INCLUDEDIR@
libpspnetinclude_HEADERS = pspnet.h \
pspnet_apctl.h \
pspnet_inet.h \
pspnet_resolver.h \
pspnet_adhoc.h \
pspnet_adhocctl.h \
pspnet_adhocmatching.h \
psphttp.h \
pspssl.h
lib_LIBRARIES = libpspnet.a \
libpspnet_apctl.a \
libpspnet_inet.a \
libpspnet_resolver.a \
libpspnet_adhoc.a \
libpspnet_adhocctl.a \
libpspnet_adhocmatching.a \
libpsphttp.a \
libpspssl.a
libpspnet_a_SOURCES = sceNet.S sceNet_lib.S
libpspnet_a_LIBADD = $(NET_OBJS) $(NETLIB_OBJS)
libpspnet_apctl_a_SOURCES = sceNetApctl.S
libpspnet_apctl_a_LIBADD = $(NET_APCTL_OBJS)
libpspnet_inet_a_SOURCES = sceNetInet.S
libpspnet_inet_a_LIBADD = $(NET_INET_OBJS)
libpspnet_resolver_a_SOURCES = sceNetResolver.S
libpspnet_resolver_a_LIBADD = $(NET_RESOLVER_OBJS)
libpspnet_adhoc_a_SOURCES = sceNetAdhoc.S
libpspnet_adhoc_a_LIBADD = $(NET_ADHOC_OBJS)
libpspnet_adhocctl_a_SOURCES = sceNetAdhocctl.S
libpspnet_adhocctl_a_LIBADD = $(NET_ADHOCCTL_OBJS)
libpspnet_adhocmatching_a_SOURCES = sceNetAdhocMatching.S
libpspnet_adhocmatching_a_LIBADD = $(NET_ADHOCMATCHING_OBJS)
libpsphttp_a_SOURCES = sceHttp.S
libpsphttp_a_LIBADD = $(HTTP_OBJS)
libpspssl_a_SOURCES = sceSsl.S
libpspssl_a_LIBADD = $(SSL_OBJS)
$(NET_OBJS): sceNet.S
$(COMPILE) -DF_$* $< -c -o $@
$(NETLIB_OBJS): sceNet_lib.S
$(COMPILE) -DF_$* $< -c -o $@
$(NET_APCTL_OBJS): sceNetApctl.S
$(COMPILE) -DF_$* $< -c -o $@
$(NET_INET_OBJS): sceNetInet.S
$(COMPILE) -DF_$* $< -c -o $@
$(NET_RESOLVER_OBJS): sceNetResolver.S
$(COMPILE) -DF_$* $< -c -o $@
$(NET_ADHOC_OBJS): sceNetAdhoc.S
$(COMPILE) -DF_$* $< -c -o $@
$(NET_ADHOCCTL_OBJS): sceNetAdhocctl.S
$(COMPILE) -DF_$* $< -c -o $@
$(NET_ADHOCMATCHING_OBJS): sceNetAdhocMatching.S
$(COMPILE) -DF_$* $< -c -o $@
$(HTTP_OBJS): sceHttp.S
$(COMPILE) -DF_$* $< -c -o $@
$(SSL_OBJS): sceSsl.S
$(COMPILE) -DF_$* $< -c -o $@

326
src/net/psphttp.h Normal file
View File

@@ -0,0 +1,326 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* psphttp.h - Interface to the http library.
*
* Copyright (c) 2008 David Perry (InsertWittyName)
* Copyright (c) 2008 moonlight
*
*/
#ifndef __PSPHTTP_H__
#define __PSPHTTP_H__
#if defined(__cplusplus)
extern "C" {
#endif
typedef enum
{
PSP_HTTP_METHOD_GET,
PSP_HTTP_METHOD_POST,
PSP_HTTP_METHOD_HEAD
} PspHttpMethod;
/**
* Init the http library.
*
* @param unknown1 - Memory pool size? Pass 20000
* @return 0 on success, < 0 on error.
*/
int sceHttpInit(unsigned int unknown1);
/**
* Terminate the http library.
*
* @return 0 on success, < 0 on error.
*/
int sceHttpEnd(void);
/**
* Create a http template.
*
* @param agent - User agent
* @param unknown1 - Pass 1
* @param unknown2 - Pass 0
* @return A template ID on success, < 0 on error.
*/
int sceHttpCreateTemplate(char *agent, int unknown1, int unknown2);
/**
* Delete a http template.
*
* @param templateid - ID of the template created by sceHttpCreateTemplate
* @return 0 on success, < 0 on error.
*/
int sceHttpDeleteTemplate(int templateid);
/**
* Create a http connection.
*
* @param templateid - ID of the template created by sceHttpCreateTemplate
* @param host - Host to connect to
* @param unknown1 - Pass "http"
* @param port - Port to connect on
* @param unknown2 - Pass 0
* @return A connection ID on success, < 0 on error.
*/
int sceHttpCreateConnection(int templateid, char *host, char *unknown1, unsigned short port, int unknown2);
/**
* Create a http connection to a url.
*
* @param templateid - ID of the template created by sceHttpCreateTemplate
* @param url - url to connect to
* @param unknown1 - Pass 0
* @return A connection ID on success, < 0 on error.
*/
int sceHttpCreateConnectionWithURL(int templateid, const char *url, int unknown1);
/**
* Delete a http connection.
*
* @param connectionid - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL
* @return 0 on success, < 0 on error.
*/
int sceHttpDeleteConnection(int connectionid);
/**
* Create a http request.
*
* @param connectionid - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL
* @param method - One of ::PspHttpMethod
* @param path - Path to access
* @param contentlength - Length of the content (POST method only)
* @return A request ID on success, < 0 on error.
*/
int sceHttpCreateRequest(int connectionid, PspHttpMethod method, char *path, SceULong64 contentlength);
/**
* Create a http request with url.
*
* @param connectionid - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL
* @param method - One of ::PspHttpMethod
* @param url - url to access
* @param contentlength - Length of the content (POST method only)
* @return A request ID on success, < 0 on error.
*/
int sceHttpCreateRequestWithURL(int connectionid, PspHttpMethod method, char *url, SceULong64 contentlength);
/**
* Delete a http request.
*
* @param requestid - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL
* @return 0 on success, < 0 on error.
*/
int sceHttpDeleteRequest(int requestid);
/**
* Send a http request.
*
* @param requestid - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL
* @param data - For POST methods specify a pointer to the post data, otherwise pass NULL
* @param datasize - For POST methods specify the size of the post data, otherwise pass 0
* @return 0 on success, < 0 on error.
*/
int sceHttpSendRequest(int requestid, void *data, unsigned int datasize);
/**
* Abort a http request.
*
* @param requestid - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL
* @return 0 on success, < 0 on error.
*/
int sceHttpAbortRequest(int requestid);
/**
* Read a http request response.
*
* @param requestid - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL
* @param data - Buffer for the response data to be stored
* @param datasize - Size of the buffer
* @return The size read into the data buffer, 0 if there is no more data, < 0 on error.
*/
int sceHttpReadData(int requestid, void *data, unsigned int datasize);
/**
* Get http request response length.
*
* @param requestid - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL
* @param contentlength - The size of the content
* @return 0 on success, < 0 on error.
*/
int sceHttpGetContentLength(int requestid, SceULong64 *contentlength);
/**
* Get http request status code.
*
* @param requestid - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL
* @param statuscode - The status code from the host (200 is ok, 404 is not found etc)
* @return 0 on success, < 0 on error.
*/
int sceHttpGetStatusCode(int requestid, int *statuscode);
/**
* Set resolver timeout
*
* @param id - ID of the template or connection
* @param timeout - Timeout value in microseconds
* @return 0 on success, < 0 on error.
*/
int sceHttpSetResolveTimeOut(int id, unsigned int timeout);
/**
* Set resolver retry
*
* @param id - ID of the template or connection
* @param count - Number of retries
* @return 0 on success, < 0 on error.
*/
int sceHttpSetResolveRetry(int id, int count);
/**
* Set connect timeout
*
* @param id - ID of the template, connection or request
* @param timeout - Timeout value in microseconds
* @return 0 on success, < 0 on error.
*/
int sceHttpSetConnectTimeOut(int id, unsigned int timeout);
/**
* Set send timeout
*
* @param id - ID of the template, connection or request
* @param timeout - Timeout value in microseconds
* @return 0 on success, < 0 on error.
*/
int sceHttpSetSendTimeOut(int id, unsigned int timeout);
/**
* Set receive timeout
*
* @param id - ID of the template or connection
* @param timeout - Timeout value in microseconds
* @return 0 on success, < 0 on error.
*/
int sceHttpSetRecvTimeOut(int id, unsigned int timeout);
/**
* Enable keep alive
*
* @param id - ID of the template or connection
* @return 0 on success, < 0 on error.
*/
int sceHttpEnableKeepAlive(int id);
/**
* Disable keep alive
*
* @param id - ID of the template or connection
* @return 0 on success, < 0 on error.
*/
int sceHttpDisableKeepAlive(int id);
/**
* Enable redirect
*
* @param id - ID of the template or connection
* @return 0 on success, < 0 on error.
*/
int sceHttpEnableRedirect(int id);
/**
* Disable redirect
*
* @param id - ID of the template or connection
* @return 0 on success, < 0 on error.
*/
int sceHttpDisableRedirect(int id);
/**
* Enable cookie
*
* @param id - ID of the template or connection
* @return 0 on success, < 0 on error.
*/
int sceHttpEnableCookie(int id);
/**
* Disable cookie
*
* @param id - ID of the template or connection
* @return 0 on success, < 0 on error.
*/
int sceHttpDisableCookie(int id);
/**
* Save cookie
*
* @return 0 on success, < 0 on error.
*/
int sceHttpSaveSystemCookie(void);
/**
* Load cookie
*
* @return 0 on success, < 0 on error.
*/
int sceHttpLoadSystemCookie(void);
/**
* Add content header
*
* @param id - ID of the template, connection or request
* @param name - Name of the content
* @param value - Value of the content
* @param unknown1 - Pass 0
* @return 0 on success, < 0 on error.
*/
int sceHttpAddExtraHeader(int id, char *name, char *value, int unknown1);
/**
* Delete content header
*
* @param id - ID of the template, connection or request
* @param name - Name of the content
* @return 0 on success, < 0 on error.
*/
int sceHttpDeleteHeader(int id, const char *name);
/**
* Init the https library.
*
* @param unknown1 - Pass 0
* @param unknown2 - Pass 0
* @param unknown3 - Pass 0
* @param unknown4 - Pass 0
*
* @return 0 on success, < 0 on error.
*/
int sceHttpsInit(int unknown1, int unknown2, int unknown3, int unknown4);
/**
* Terminate the https library
*
* @return 0 on success, < 0 on error.
*/
int sceHttpsEnd(void);
/**
* Load default certificate
*
* @param unknown1 - Pass 0
* @param unknown2 - Pass 0
* @return 0 on success, < 0 on error.
*/
int sceHttpsLoadDefaultCert(int unknown1, int unknown2);
#if defined(__cplusplus)
};
#endif
#endif

107
src/net/pspnet.h Normal file
View File

@@ -0,0 +1,107 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspnet.h - PSP networking libraries.
*
* Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
* Copyright (c) 2008 David Perry <tias_dp@hotmail.com>
*
* Portions based on PspPet's wifi_03 sample code.
*
* $Id: pspnet.h 2439 2008-10-23 18:58:06Z iwn $
*/
#ifndef PSPNET_H
#define PSPNET_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct SceNetMallocStat
{
int pool;
int maximum;
int free;
} SceNetMallocStat;
/**
* Initialise the networking library
*
* @param poolsize - Memory pool size (appears to be for the whole of the networking library).
* @param calloutprio - Priority of the SceNetCallout thread.
* @param calloutstack - Stack size of the SceNetCallout thread (defaults to 4096 on non 1.5 firmware regardless of what value is passed).
* @param netintrprio - Priority of the SceNetNetintr thread.
* @param netintrstack - Stack size of the SceNetNetintr thread (defaults to 4096 on non 1.5 firmware regardless of what value is passed).
*
* @return 0 on success, < 0 on error
*/
int sceNetInit(int poolsize, int calloutprio, int calloutstack, int netintrprio, int netintrstack);
/**
* Terminate the networking library
*
* @return 0 on success, < 0 on error
*/
int sceNetTerm(void);
/**
* Free (delete) thread info/data
*
* @param thid - The thread id.
*
* @return 0 on success, < 0 on error
*/
int sceNetFreeThreadinfo(int thid);
/**
* Abort a thread
*
* @param thid - The thread id.
*
* @return 0 on success, < 0 on error
*/
int sceNetThreadAbort(int thid);
/**
* Convert string to a Mac address
*
* @param name - The string to convert.
* @param mac - Pointer to a buffer to store the result.
*/
void sceNetEtherStrton(char *name, unsigned char *mac);
/**
* Convert Mac address to a string
*
* @param mac - The Mac address to convert.
* @param name - Pointer to a buffer to store the result.
*/
void sceNetEtherNtostr(unsigned char *mac, char *name);
/**
* Retrieve the local Mac address
*
* @param mac - Pointer to a buffer to store the result.
*
* @return 0 on success, < 0 on error
*/
int sceNetGetLocalEtherAddr(unsigned char *mac);
/**
* Retrieve the networking library memory usage
*
* @param stat - Pointer to a ::SceNetMallocStat type to store the result.
*
* @return 0 on success, < 0 on error
*/
int sceNetGetMallocStat(SceNetMallocStat *stat);
#ifdef __cplusplus
}
#endif
#endif /* PSPNET_H */

310
src/net/pspnet_adhoc.h Normal file
View File

@@ -0,0 +1,310 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspnet_adhoc.h - PSP Adhoc networking libraries.
*
* Copyright (c) 2006 James F.
* Copyright (c) 2008 InsertWittyName <tias_dp@hotmail.com>
*
* Based on the adhoc code in SMS Plus
*
* $Id: pspnet_adhoc.h 2400 2008-07-06 22:46:56Z iwn $
*/
#ifndef __PSPNET_ADHOC_H__
#define __PSPNET_ADHOC_H__
#ifdef __cplusplus
extern "C" {
#endif
/**
* Initialise the adhoc library.
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocInit(void);
/**
* Terminate the adhoc library
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocTerm(void);
/**
* Create a PDP object.
*
* @param mac - Your MAC address (from sceWlanGetEtherAddr)
* @param port - Port to use, lumines uses 0x309
* @param bufsize - Socket buffer size, lumines sets to 0x400
* @param unk1 - Unknown, lumines sets to 0
*
* @return The ID of the PDP object (< 0 on error)
*/
int sceNetAdhocPdpCreate(unsigned char *mac, unsigned short port, unsigned int bufsize, int unk1);
/**
* Delete a PDP object.
*
* @param id - The ID returned from ::sceNetAdhocPdpCreate
* @param unk1 - Unknown, set to 0
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocPdpDelete(int id, int unk1);
/**
* Set a PDP packet to a destination
*
* @param id - The ID as returned by ::sceNetAdhocPdpCreate
* @param destMacAddr - The destination MAC address, can be set to all 0xFF for broadcast
* @param port - The port to send to
* @param data - The data to send
* @param len - The length of the data.
* @param timeout - Timeout in microseconds.
* @param nonblock - Set to 0 to block, 1 for non-blocking.
*
* @return Bytes sent, < 0 on error
*/
int sceNetAdhocPdpSend(int id, unsigned char *destMacAddr, unsigned short port, void *data, unsigned int len, unsigned int timeout, int nonblock);
/**
* Receive a PDP packet
*
* @param id - The ID of the PDP object, as returned by ::sceNetAdhocPdpCreate
* @param srcMacAddr - Buffer to hold the source mac address of the sender
* @param port - Buffer to hold the port number of he received data
* @param data - Data buffer
* @param dataLength - The length of the data buffer
* @param timeout - Timeout in microseconds.
* @param nonblock - Set to 0 to block, 1 for non-blocking.
*
* @return Number of bytes received, < 0 on error.
*/
int sceNetAdhocPdpRecv(int id, unsigned char *srcMacAddr, unsigned short *port, void *data, void *dataLength, unsigned int timeout, int nonblock);
/**
* PDP status structure
*/
typedef struct pdpStatStruct
{
/** Pointer to next PDP structure in list */
struct pdpStatStruct *next;
/** pdp ID */
int pdpId;
/** MAC address */
unsigned char mac[6];
/** Port */
unsigned short port;
/** Bytes received */
unsigned int rcvdData;
} pdpStatStruct;
/**
* Get the status of all PDP objects
*
* @param size - Pointer to the size of the stat array (e.g 20 for one structure)
* @param stat - Pointer to a list of ::pspStatStruct structures.
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocGetPdpStat(int *size, pdpStatStruct *stat);
/**
* Create own game object type data.
*
* @param data - A pointer to the game object data.
* @param size - Size of the game data.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocGameModeCreateMaster(void *data, int size);
/**
* Create peer game object type data.
*
* @param mac - The mac address of the peer.
* @param data - A pointer to the game object data.
* @param size - Size of the game data.
*
* @return The id of the replica on success, < 0 on error.
*/
int sceNetAdhocGameModeCreateReplica(unsigned char *mac, void *data, int size);
/**
* Update own game object type data.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocGameModeUpdateMaster(void);
/**
* Update peer game object type data.
*
* @param id - The id of the replica returned by sceNetAdhocGameModeCreateReplica.
* @param unk1 - Pass 0.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocGameModeUpdateReplica(int id, int unk1);
/**
* Delete own game object type data.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocGameModeDeleteMaster(void);
/**
* Delete peer game object type data.
*
* @param id - The id of the replica.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocGameModeDeleteReplica(int id);
/**
* Open a PTP connection
*
* @param srcmac - Local mac address.
* @param srcport - Local port.
* @param destmac - Destination mac.
* @param destport - Destination port
* @param bufsize - Socket buffer size
* @param delay - Interval between retrying (microseconds).
* @param count - Number of retries.
* @param unk1 - Pass 0.
*
* @return A socket ID on success, < 0 on error.
*/
int sceNetAdhocPtpOpen(unsigned char *srcmac, unsigned short srcport, unsigned char *destmac, unsigned short destport, unsigned int bufsize, unsigned int delay, int count, int unk1);
/**
* Wait for connection created by sceNetAdhocPtpOpen()
*
* @param id - A socket ID.
* @param timeout - Timeout in microseconds.
* @param nonblock - Set to 0 to block, 1 for non-blocking.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocPtpConnect(int id, unsigned int timeout, int nonblock);
/**
* Wait for an incoming PTP connection
*
* @param srcmac - Local mac address.
* @param srcport - Local port.
* @param bufsize - Socket buffer size
* @param delay - Interval between retrying (microseconds).
* @param count - Number of retries.
* @param queue - Connection queue length.
* @param unk1 - Pass 0.
*
* @return A socket ID on success, < 0 on error.
*/
int sceNetAdhocPtpListen(unsigned char *srcmac, unsigned short srcport, unsigned int bufsize, unsigned int delay, int count, int queue, int unk1);
/**
* Accept an incoming PTP connection
*
* @param id - A socket ID.
* @param mac - Connecting peers mac.
* @param port - Connecting peers port.
* @param timeout - Timeout in microseconds.
* @param nonblock - Set to 0 to block, 1 for non-blocking.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocPtpAccept(int id, unsigned char *mac, unsigned short *port, unsigned int timeout, int nonblock);
/**
* Send data
*
* @param id - A socket ID.
* @param data - Data to send.
* @param datasize - Size of the data.
* @param timeout - Timeout in microseconds.
* @param nonblock - Set to 0 to block, 1 for non-blocking.
*
* @return 0 success, < 0 on error.
*/
int sceNetAdhocPtpSend(int id, void *data, int *datasize, unsigned int timeout, int nonblock);
/**
* Receive data
*
* @param id - A socket ID.
* @param data - Buffer for the received data.
* @param datasize - Size of the data received.
* @param timeout - Timeout in microseconds.
* @param nonblock - Set to 0 to block, 1 for non-blocking.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocPtpRecv(int id, void *data, int *datasize, unsigned int timeout, int nonblock);
/**
* Wait for data in the buffer to be sent
*
* @param id - A socket ID.
* @param timeout - Timeout in microseconds.
* @param nonblock - Set to 0 to block, 1 for non-blocking.
*
* @return A socket ID on success, < 0 on error.
*/
int sceNetAdhocPtpFlush(int id, unsigned int timeout, int nonblock);
/**
* Close a socket
*
* @param id - A socket ID.
* @param unk1 - Pass 0.
*
* @return A socket ID on success, < 0 on error.
*/
int sceNetAdhocPtpClose(int id, int unk1);
/**
* PTP status structure
*/
typedef struct ptpStatStruct
{
/** Pointer to next PTP structure in list */
struct ptpStatStruct *next;
/** ptp ID */
int ptpId;
/** MAC address */
unsigned char mac[6];
/** Peer MAC address */
unsigned char peermac[6];
/** Port */
unsigned short port;
/** Peer Port */
unsigned short peerport;
/** Bytes sent */
unsigned int sentData;
/** Bytes received */
unsigned int rcvdData;
/** Unknown */
int unk1;
} ptpStatStruct;
/**
* Get the status of all PTP objects
*
* @param size - Pointer to the size of the stat array (e.g 20 for one structure)
* @param stat - Pointer to a list of ::ptpStatStruct structures.
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocGetPtpStat(int *size, ptpStatStruct *stat);
#ifdef __cplusplus
}
#endif
#endif

287
src/net/pspnet_adhocctl.h Normal file
View File

@@ -0,0 +1,287 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspnet_adhocctl.h - PSP Adhoc control networking libraries.
*
* Copyright (c) 2006 James F.
* Copyright (c) 2008 InsertWittyName <tias_dp@hotmail.com>
*
* Based on the adhoc code in SMS Plus
*
* $Id: pspnet_adhocctl.h 2433 2008-10-15 10:00:27Z iwn $
*/
#ifndef __PSPNETCTL_ADHOC_H__
#define __PSPNETCTL_ADHOC_H__
#ifdef __cplusplus
extern "C" {
#endif
/** Product structure */
struct productStruct
{
/** Unknown, set to 0 */
int unknown;
/** The product ID string */
char product[9];
} productStruct;
/** Peer info structure */
struct SceNetAdhocctlPeerInfo
{
struct SceNetAdhocctlPeerInfo *next;
/** Nickname */
char nickname[128];
/** Mac address */
unsigned char mac[6];
/** Unknown */
unsigned char unknown[6];
/** Time stamp */
unsigned long timestamp;
};
/** Scan info structure */
struct SceNetAdhocctlScanInfo
{
struct SceNetAdhocctlScanInfo *next;
/** Channel number */
int channel;
/** Name of the connection (alphanumeric characters only) */
char name[8];
/** The BSSID */
unsigned char bssid[6];
/** Unknown */
unsigned char unknown[2];
/** Unknown */
int unknown2;
};
struct SceNetAdhocctlGameModeInfo
{
/** Number of peers (including self) */
int count;
/** MAC addresses of peers (including self) */
unsigned char macs[16][6];
};
/** Params structure */
struct SceNetAdhocctlParams
{
/** Channel number */
int channel;
/** Name of the connection */
char name[8];
/** The BSSID */
unsigned char bssid[6];
/** Nickname */
char nickname[128];
};
/**
* Initialise the Adhoc control library
*
* @param stacksize - Stack size of the adhocctl thread. Set to 0x2000
* @param priority - Priority of the adhocctl thread. Set to 0x30
* @param product - Pass a filled in ::productStruct
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocctlInit(int stacksize, int priority, struct productStruct *product);
/**
* Terminate the Adhoc control library
*
* @return 0 on success, < on error.
*/
int sceNetAdhocctlTerm(void);
/**
* Connect to the Adhoc control
*
* @param name - The name of the connection (maximum 8 alphanumeric characters).
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlConnect(const char *name);
/**
* Disconnect from the Adhoc control
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocctlDisconnect(void);
/**
* Get the state of the Adhoc control
*
* @param event - Pointer to an integer to receive the status. Can continue when it becomes 1.
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocctlGetState(int *event);
/**
* Connect to the Adhoc control (as a host)
*
* @param name - The name of the connection (maximum 8 alphanumeric characters).
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlCreate(const char *name);
/**
* Connect to the Adhoc control (as a client)
*
* @param scaninfo - A valid ::SceNetAdhocctlScanInfo struct that has been filled by sceNetAchocctlGetScanInfo
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlJoin(struct SceNetAdhocctlScanInfo *scaninfo);
/**
* Get the adhoc ID
*
* @param product - A pointer to a ::productStruct
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlGetAdhocId(struct productStruct *product);
/**
* Connect to the Adhoc control game mode (as a host)
*
* @param name - The name of the connection (maximum 8 alphanumeric characters).
* @param unknown - Pass 1.
* @param num - The total number of players (including the host).
* @param macs - A pointer to a list of the participating mac addresses, host first, then clients.
* @param timeout - Timeout in microseconds.
* @param unknown2 - pass 0.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlCreateEnterGameMode(const char *name, int unknown, int num, unsigned char *macs, unsigned int timeout, int unknown2);
/**
* Connect to the Adhoc control game mode (as a client)
*
* @param name - The name of the connection (maximum 8 alphanumeric characters).
* @param hostmac - The mac address of the host.
* @param timeout - Timeout in microseconds.
* @param unknown - pass 0.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlJoinEnterGameMode(const char *name, unsigned char *hostmac, unsigned int timeout, int unknown);
/**
* Get game mode information
*
* @param gamemodeinfo - Pointer to store the info.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlGetGameModeInfo(struct SceNetAdhocctlGameModeInfo *gamemodeinfo);
/**
* Exit game mode.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlExitGameMode(void);
/**
* Get a list of peers
*
* @param length - The length of the list.
* @param buf - An allocated area of size length.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlGetPeerList(int *length, void *buf);
/**
* Get peer information
*
* @param mac - The mac address of the peer.
* @param size - Size of peerinfo.
* @param peerinfo - Pointer to store the information.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlGetPeerInfo(unsigned char *mac, int size, struct SceNetAdhocctlPeerInfo *peerinfo);
/**
* Scan the adhoc channels
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlScan(void);
/**
* Get the results of a scan
*
* @param length - The length of the list.
* @param buf - An allocated area of size length.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlGetScanInfo(int *length, void *buf);
typedef void (*sceNetAdhocctlHandler)(int flag, int error, void *unknown);
/**
* Register an adhoc event handler
*
* @param handler - The event handler.
* @param unknown - Pass NULL.
*
* @return Handler id on success, < 0 on error.
*/
int sceNetAdhocctlAddHandler(sceNetAdhocctlHandler handler, void *unknown);
/**
* Delete an adhoc event handler
*
* @param id - The handler id as returned by sceNetAdhocctlAddHandler.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlDelHandler(int id);
/**
* Get nickname from a mac address
*
* @param mac - The mac address.
* @param nickname - Pointer to a char buffer where the nickname will be stored.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlGetNameByAddr(unsigned char *mac, char *nickname);
/**
* Get mac address from nickname
*
* @param nickname - The nickname.
* @param length - The length of the list.
* @param buf - An allocated area of size length.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlGetAddrByName(char *nickname, int *length, void *buf);
/**
* Get Adhocctl parameter
*
* @param params - Pointer to a ::SceNetAdhocctlParams
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocctlGetParameter(struct SceNetAdhocctlParams *params);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,269 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspnet_adhocmatching.h - PSP Adhoc matching networking libraries.
*
* Copyright (c) 2006 James F.
* Copyright (c) 2008 InsertWittyName <tias_dp@hotmail.com>
*
* Based on the adhoc code in SMS Plus
*
* $Id: pspnet_adhocmatching.h 2433 2008-10-15 10:00:27Z iwn $
*/
#ifndef __PSPNETMATCHING_ADHOC_H__
#define __PSPNETMATCHING_ADHOC_H__
#ifdef __cplusplus
extern "C" {
#endif
/**
* Matching events used in pspAdhocMatchingCallback
*/
enum pspAdhocMatchingEvents
{
/** Hello event. optdata contains data if optlen > 0. */
PSP_ADHOC_MATCHING_EVENT_HELLO = 1,
/** Join request. optdata contains data if optlen > 0. */
PSP_ADHOC_MATCHING_EVENT_JOIN = 2,
/** Target left matching. */
PSP_ADHOC_MATCHING_EVENT_LEFT = 3,
/** Join request rejected. */
PSP_ADHOC_MATCHING_EVENT_REJECT = 4,
/** Join request cancelled. */
PSP_ADHOC_MATCHING_EVENT_CANCEL = 5,
/** Join request accepted. optdata contains data if optlen > 0. */
PSP_ADHOC_MATCHING_EVENT_ACCEPT = 6,
/** Matching is complete. */
PSP_ADHOC_MATCHING_EVENT_COMPLETE = 7,
/** Ping timeout event. */
PSP_ADHOC_MATCHING_EVENT_TIMEOUT = 8,
/** Error event. */
PSP_ADHOC_MATCHING_EVENT_ERROR = 9,
/** Peer disconnect event. */
PSP_ADHOC_MATCHING_EVENT_DISCONNECT = 10,
/** Data received event. optdata contains data if optlen > 0. */
PSP_ADHOC_MATCHING_EVENT_DATA = 11,
/** Data acknowledged event. */
PSP_ADHOC_MATCHING_EVENT_DATA_CONFIRM = 12,
/** Data timeout event. */
PSP_ADHOC_MATCHING_EVENT_DATA_TIMEOUT = 13
};
/**
* Matching modes used in sceNetAdhocMatchingCreate
*/
enum pspAdhocMatchingModes
{
/** Host */
PSP_ADHOC_MATCHING_MODE_HOST = 1,
/** Client */
PSP_ADHOC_MATCHING_MODE_CLIENT = 2,
/** Peer to peer */
PSP_ADHOC_MATCHING_MODE_PTP = 3
};
/**
* Linked list for sceNetAdhocMatchingGetMembers
*/
struct pspAdhocMatchingMember
{
struct pspAdhocMatchingMember *next;
unsigned char mac[6];
char unknown[2];
};
/**
* Linked list for sceNetAdhocMatchingGetMembers
*/
struct pspAdhocPoolStat
{
/** Size of the pool */
int size;
/** Maximum size of the pool */
int maxsize;
/** Unused memory in the pool */
int freesize;
};
/**
* Initialise the Adhoc matching library
*
* @param memsize - Internal memory pool size. Lumines uses 0x20000
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocMatchingInit(int memsize);
/**
* Terminate the Adhoc matching library
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocMatchingTerm(void);
/** Matching callback */
typedef void (*pspAdhocMatchingCallback)(int matchingid, int event, unsigned char *mac, int optlen, void *optdata);
/**
* Create an Adhoc matching object
*
* @param mode - One of ::pspAdhocMatchingModes
* @param maxpeers - Maximum number of peers to match (only used when mode is PSP_ADHOC_MATCHING_MODE_HOST)
* @param port - Port. Lumines uses 0x22B
* @param bufsize - Receiving buffer size
* @param hellodelay - Hello message send delay in microseconds (only used when mode is PSP_ADHOC_MATCHING_MODE_HOST or PSP_ADHOC_MATCHING_MODE_PTP)
* @param pingdelay - Ping send delay in microseconds. Lumines uses 0x5B8D80 (only used when mode is PSP_ADHOC_MATCHING_MODE_HOST or PSP_ADHOC_MATCHING_MODE_PTP)
* @param initcount - Initial count of the of the resend counter. Lumines uses 3
* @param msgdelay - Message send delay in microseconds
* @param callback - Callback to be called for matching
*
* @return ID of object on success, < 0 on error.
*/
int sceNetAdhocMatchingCreate(int mode, int maxpeers, unsigned short port, int bufsize, unsigned int hellodelay, unsigned int pingdelay, int initcount, unsigned int msgdelay, pspAdhocMatchingCallback callback);
/**
* Delete an Adhoc matching object
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingDelete(int matchingid);
/**
* Start a matching object
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param evthpri - Priority of the event handler thread. Lumines uses 0x10
* @param evthstack - Stack size of the event handler thread. Lumines uses 0x2000
* @param inthpri - Priority of the input handler thread. Lumines uses 0x10
* @param inthstack - Stack size of the input handler thread. Lumines uses 0x2000
* @param optlen - Size of hellodata
* @param optdata - Pointer to block of data passed to callback
*
* @return 0 on success, < 0 on error
*/
int sceNetAdhocMatchingStart(int matchingid, int evthpri, int evthstack, int inthpri, int inthstack, int optlen, void *optdata);
/**
* Stop a matching object
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingStop(int matchingid);
/**
* Select a matching target
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param mac - MAC address to select
* @param optlen - Optional data length
* @param optdata - Pointer to the optional data
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingSelectTarget(int matchingid, unsigned char *mac, int optlen, void *optdata);
/**
* Cancel a matching target
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param mac - The MAC address to cancel
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingCancelTarget(int matchingid, unsigned char *mac);
/**
* Cancel a matching target (with optional data)
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param mac - The MAC address to cancel
* @param optlen - Optional data length
* @param optdata - Pointer to the optional data
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingCancelTargetWithOpt(int matchingid, unsigned char *mac, int optlen, void *optdata);
/**
* Send data to a matching target
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param mac - The MAC address to send the data to
* @param datalen - Length of the data
* @param data - Pointer to the data
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingSendData(int matchingid, unsigned char *mac, int datalen, void *data);
/**
* Abort a data send to a matching target
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param mac - The MAC address to send the data to
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingAbortSendData(int matchingid, unsigned char *mac);
/**
* Set the optional hello message
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param optlen - Length of the hello data
* @param optdata - Pointer to the hello data
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingSetHelloOpt(int matchingid, int optlen, void *optdata);
/**
* Get the optional hello message
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param optlen - Length of the hello data
* @param optdata - Pointer to the hello data
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingGetHelloOpt(int matchingid, int *optlen, void *optdata);
/**
* Get a list of matching members
*
* @param matchingid - The ID returned from ::sceNetAdhocMatchingCreate
* @param length - The length of the list.
* @param buf - An allocated area of size length.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingGetMembers(int matchingid, int *length, void *buf);
/**
* Get the maximum memory usage by the matching library
*
* @return The memory usage on success, < 0 on error.
*/
int sceNetAdhocMatchingGetPoolMaxAlloc(void);
/**
* Get the status of the memory pool used by the matching library
*
* @param poolstat - A ::pspAdhocPoolStat.
*
* @return 0 on success, < 0 on error.
*/
int sceNetAdhocMatchingGetPoolStat(struct pspAdhocPoolStat *poolstat);
#ifdef __cplusplus
}
#endif
#endif

171
src/net/pspnet_apctl.h Normal file
View File

@@ -0,0 +1,171 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspnet_apctl.h - PSP networking libraries.
*
* Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
* Copyright (c) 2008 David Perry <tias_dp@hotmail.com>
*
* Portions based on PspPet's wifi_03 sample code.
*
* $Id: pspnet_apctl.h 2434 2008-10-15 17:37:25Z iwn $
*/
#ifndef PSPNET_APCTL_H
#define PSPNET_APCTL_H
#ifdef __cplusplus
extern "C" {
#endif
#define PSP_NET_APCTL_STATE_DISCONNECTED 0
#define PSP_NET_APCTL_STATE_SCANNING 1
#define PSP_NET_APCTL_STATE_JOINING 2
#define PSP_NET_APCTL_STATE_GETTING_IP 3
#define PSP_NET_APCTL_STATE_GOT_IP 4
#define PSP_NET_APCTL_STATE_EAP_AUTH 5
#define PSP_NET_APCTL_STATE_KEY_EXCHANGE 6
#define PSP_NET_APCTL_EVENT_CONNECT_REQUEST 0
#define PSP_NET_APCTL_EVENT_SCAN_REQUEST 1
#define PSP_NET_APCTL_EVENT_SCAN_COMPLETE 2
#define PSP_NET_APCTL_EVENT_ESTABLISHED 3
#define PSP_NET_APCTL_EVENT_GET_IP 4
#define PSP_NET_APCTL_EVENT_DISCONNECT_REQUEST 5
#define PSP_NET_APCTL_EVENT_ERROR 6
#define PSP_NET_APCTL_EVENT_INFO 7
#define PSP_NET_APCTL_EVENT_EAP_AUTH 8
#define PSP_NET_APCTL_EVENT_KEY_EXCHANGE 9
#define PSP_NET_APCTL_EVENT_RECONNECT 10
#define PSP_NET_APCTL_INFO_PROFILE_NAME 0
#define PSP_NET_APCTL_INFO_BSSID 1
#define PSP_NET_APCTL_INFO_SSID 2
#define PSP_NET_APCTL_INFO_SSID_LENGTH 3
#define PSP_NET_APCTL_INFO_SECURITY_TYPE 4
#define PSP_NET_APCTL_INFO_STRENGTH 5
#define PSP_NET_APCTL_INFO_CHANNEL 6
#define PSP_NET_APCTL_INFO_POWER_SAVE 7
#define PSP_NET_APCTL_INFO_IP 8
#define PSP_NET_APCTL_INFO_SUBNETMASK 9
#define PSP_NET_APCTL_INFO_GATEWAY 10
#define PSP_NET_APCTL_INFO_PRIMDNS 11
#define PSP_NET_APCTL_INFO_SECDNS 12
#define PSP_NET_APCTL_INFO_USE_PROXY 13
#define PSP_NET_APCTL_INFO_PROXY_URL 14
#define PSP_NET_APCTL_INFO_PROXY_PORT 15
#define PSP_NET_APCTL_INFO_8021_EAP_TYPE 16
#define PSP_NET_APCTL_INFO_START_BROWSER 17
#define PSP_NET_APCTL_INFO_WIFISP 18
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_NONE 0
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_WEP 1
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_WPA 2
union SceNetApctlInfo
{
char name[64]; /* Name of the config used */
unsigned char bssid[6]; /* MAC address of the access point */
unsigned char ssid[32]; /* ssid */
unsigned int ssidLength; /* ssid string length*/
unsigned int securityType; /* 0 for none, 1 for WEP, 2 for WPA) */
unsigned char strength; /* Signal strength in % */
unsigned char channel; /* Channel */
unsigned char powerSave; /* 1 on, 0 off */
char ip[16]; /* PSP's ip */
char subNetMask[16]; /* Subnet mask */
char gateway[16]; /* Gateway */
char primaryDns[16]; /* Primary DNS */
char secondaryDns[16]; /* Secondary DNS */
unsigned int useProxy; /* 1 for proxy, 0 for no proxy */
char proxyUrl[128]; /* Proxy url */
unsigned short proxyPort; /* Proxy port */
unsigned int eapType; /* 0 is none, 1 is EAP-MD5 */
unsigned int startBrowser; /* Should browser be started */
unsigned int wifisp; /* 1 if connection is for Wifi service providers (WISP) */
};
typedef void (*sceNetApctlHandler)(int oldState, int newState, int event, int error, void *pArg);
/**
* Init the apctl.
*
* @param stackSize - The stack size of the internal thread.
*
* @param initPriority - The priority of the internal thread.
*
* @return < 0 on error.
*/
int sceNetApctlInit(int stackSize, int initPriority);
/**
* Terminate the apctl.
*
* @return < 0 on error.
*/
int sceNetApctlTerm(void);
/**
* Get the apctl information.
*
* @param code - One of the PSP_NET_APCTL_INFO_* defines.
*
* @param pInfo - Pointer to a ::SceNetApctlInfo.
*
* @return < 0 on error.
*/
int sceNetApctlGetInfo(int code, union SceNetApctlInfo *pInfo);
/**
* Add an apctl event handler.
*
* @param handler - Pointer to the event handler function.
*
* @param pArg - Value to be passed to the pArg parameter of the handler function.
*
* @return A handler id or < 0 on error.
*/
int sceNetApctlAddHandler(sceNetApctlHandler handler, void *pArg);
/**
* Delete an apctl event handler.
*
* @param handlerid - A handler as created returned from sceNetApctlAddHandler.
*
* @return < 0 on error.
*/
int sceNetApctlDelHandler(int handlerId);
/**
* Connect to an access point.
*
* @param connIndex - The index of the connection.
*
* @return < 0 on error.
*/
int sceNetApctlConnect(int connIndex);
/**
* Disconnect from an access point.
*
* @return < 0 on error.
*/
int sceNetApctlDisconnect(void);
/**
* Get the state of the access point connection.
*
* @param pState - Pointer to receive the current state (one of the PSP_NET_APCTL_STATE_* defines).
*
* @return < 0 on error.
*/
int sceNetApctlGetState(int *pState);
#ifdef __cplusplus
}
#endif
#endif /* PSPNET_APCTL_H */

47
src/net/pspnet_inet.h Normal file
View File

@@ -0,0 +1,47 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspnet_inet.h - PSP networking libraries.
*
* Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
*
* Portions based on PspPet's wifi_03 sample code.
*
* $Id: pspnet_inet.h 1541 2005-12-08 05:49:20Z mrbrown $
*/
#ifndef PSPNET_INET_H
#define PSPNET_INET_H
#ifdef __cplusplus
extern "C" {
#endif
int sceNetInetInit(void);
int sceNetInetTerm(void);
/* The real sceNetInet socket prototypes are in <sys/socket.h>. */
#ifdef DOXYGEN
int sceNetInetAccept(int s, struct sockaddr *addr, socklen_t *addrlen);
int sceNetInetBind(int s, const struct sockaddr *my_addr, socklen_t addrlen);
int sceNetInetConnect(int s, const struct sockaddr *serv_addr, socklen_t addrlen);
int sceNetInetGetsockopt(int s, int level, int optname, void *optval, socklen_t *optlen);
int sceNetInetListen(int s, int backlog);
size_t sceNetInetRecv(int s, void *buf, size_t len, int flags);
size_t sceNetInetRecvfrom(int s, void *buf, size_t flags, int, struct sockaddr *from, socklen_t *fromlen);
size_t sceNetInetSend(int s, const void *buf, size_t len, int flags);
size_t sceNetInetSendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen);
int sceNetInetSetsockopt(int s, int level, int optname, const void *optval, socklen_t optlen);
int sceNetInetShutdown(int s, int how);
int sceNetInetSocket(int domain, int type, int protocol);
int sceNetInetClose(int s);
int sceNetInetGetErrno(void);
#endif /* DOXYGEN */
#ifdef __cplusplus
}
#endif
#endif /* PSPNET_INET_H */

98
src/net/pspnet_resolver.h Normal file
View File

@@ -0,0 +1,98 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspnet_resolver.h - PSP networking libraries.
*
* Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
*
* Portions based on PspPet's wifi_03 sample code.
*
* $Id: pspnet_resolver.h 1661 2006-01-08 13:36:35Z tyranid $
*/
#ifndef PSPNET_RESOLVER_H
#define PSPNET_RESOLVER_H
#ifdef __cplusplus
extern "C" {
#endif
#include <netinet/in.h>
/**
* Inititalise the resolver library
*
* @return 0 on sucess, < 0 on error.
*/
int sceNetResolverInit(void);
/**
* Create a resolver object
*
* @param rid - Pointer to receive the resolver id
* @param buf - Temporary buffer
* @param buflen - Length of the temporary buffer
*
* @return 0 on success, < 0 on error
*/
int sceNetResolverCreate(int *rid, void *buf, SceSize buflen);
/**
* Delete a resolver
*
* @param rid - The resolver to delete
*
* @return 0 on success, < 0 on error
*/
int sceNetResolverDelete(int rid);
/**
* Begin a name to address lookup
*
* @param rid - Resolver id
* @param hostname - Name to resolve
* @param addr - Pointer to in_addr structure to receive the address
* @param timeout - Number of seconds before timeout
* @param retry - Number of retires
*
* @return 0 on success, < 0 on error
*/
int sceNetResolverStartNtoA(int rid, const char *hostname, struct in_addr* addr, unsigned int timeout, int retry);
/**
* Begin a address to name lookup
*
* @param rid -Resolver id
* @param addr - Pointer to the address to resolve
* @param hostname - Buffer to receive the name
* @param hostname_len - Length of the buffer
* @param timeout - Number of seconds before timeout
* @param retry - Number of retries
*
* @return 0 on success, < 0 on error
*/
int sceNetResolverStartAtoN(int rid, const struct in_addr* addr, char *hostname, SceSize hostname_len, unsigned int timeout, int retry);
/**
* Stop a resolver operation
*
* @param rid - Resolver id
*
* @return 0 on success, < 0 on error
*/
int sceNetResolverStop(int rid);
/**
* Terminate the resolver library
*
* @return 0 on success, < 0 on error
*/
int sceNetResolverTerm(void);
#ifdef __cplusplus
}
#endif
#endif /* PSPNET_RESOLVER_H */

58
src/net/pspssl.h Normal file
View File

@@ -0,0 +1,58 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspssl.h - Interface to the ssl library.
*
* Copyright (c) 2008 David Perry (InsertWittyName)
* Copyright (c) 2008 moonlight
*
*/
#ifndef __PSPSSL_H__
#define __PSPSSL_H__
#if defined(__cplusplus)
extern "C" {
#endif
/**
* Init the ssl library.
*
* @param unknown1 - Memory size? Pass 0x28000
*
* @return 0 on success
*/
int sceSslInit(int unknown1);
/**
* Terminate the ssl library.
*
* @return 0 on success
*/
int sceSslEnd(void);
/**
* Get the maximum memory size used by ssl.
*
* @param memory - Pointer where the maximum memory used value will be stored.
*
* @return 0 on success
*/
int sceSslGetUsedMemoryMax(unsigned int *memory);
/**
* Get the current memory size used by ssl.
*
* @param memory - Pointer where the current memory used value will be stored.
*
* @return 0 on success
*/
int sceSslGetUsedMemoryCurrent(unsigned int *memory);
#if defined(__cplusplus)
};
#endif
#endif

259
src/net/sceHttp.S Normal file
View File

@@ -0,0 +1,259 @@
.set noreorder
#include "pspimport.s"
// Build List
// sceHttp_0000.o sceHttp_0001.o sceHttp_0002.o sceHttp_0003.o sceHttp_0004.o sceHttp_0005.o sceHttp_0006.o sceHttp_0007.o sceHttp_0008.o sceHttp_0009.o sceHttp_0010.o sceHttp_0011.o sceHttp_0012.o sceHttp_0013.o sceHttp_0014.o sceHttp_0015.o sceHttp_0016.o sceHttp_0017.o sceHttp_0018.o sceHttp_0019.o sceHttp_0020.o sceHttp_0021.o sceHttp_0022.o sceHttp_0023.o sceHttp_0024.o sceHttp_0025.o sceHttp_0026.o sceHttp_0027.o sceHttp_0028.o sceHttp_0029.o sceHttp_0030.o sceHttp_0031.o sceHttp_0032.o sceHttp_0033.o sceHttp_0034.o sceHttp_0035.o sceHttp_0036.o sceHttp_0037.o sceHttp_0038.o sceHttp_0039.o sceHttp_0040.o sceHttp_0041.o sceHttp_0042.o sceHttp_0043.o sceHttp_0044.o sceHttp_0045.o sceHttp_0046.o sceHttp_0047.o sceHttp_0048.o sceHttp_0049.o sceHttp_0050.o sceHttp_0051.o sceHttp_0052.o sceHttp_0053.o sceHttp_0054.o sceHttp_0055.o sceHttp_0056.o sceHttp_0057.o sceHttp_0058.o sceHttp_0059.o sceHttp_0060.o sceHttp_0061.o sceHttp_0062.o sceHttp_0063.o sceHttp_0064.o sceHttp_0065.o sceHttp_0066.o sceHttp_0067.o sceHttp_0068.o sceHttp_0069.o sceHttp_0070.o sceHttp_0071.o sceHttp_0072.o sceHttp_0073.o sceHttp_0074.o sceHttp_0075.o sceHttp_0076.o sceHttp_0077.o sceHttp_0078.o sceHttp_0079.o sceHttp_0080.o sceHttp_0081.o sceHttp_0082.o sceHttp_0083.o
#ifdef F_sceHttp_0000
IMPORT_START "sceHttp",0x00090011
#endif
#ifdef F_sceHttp_0001
IMPORT_FUNC "sceHttp",0x0282A3BD,sceHttpGetContentLength
#endif
#ifdef F_sceHttp_0002
IMPORT_FUNC "sceHttp",0x03D9526F,sceHttpSetResolveRetry
#endif
#ifdef F_sceHttp_0003
IMPORT_FUNC "sceHttp",0x06488A1C,sceHttpSetCookieSendCallback
#endif
#ifdef F_sceHttp_0004
IMPORT_FUNC "sceHttp",0x0809C831,sceHttpEnableRedirect
#endif
#ifdef F_sceHttp_0005
IMPORT_FUNC "sceHttp",0x0B12ABFB,sceHttpDisableCookie
#endif
#ifdef F_sceHttp_0006
IMPORT_FUNC "sceHttp",0x0DAFA58F,sceHttpEnableCookie
#endif
#ifdef F_sceHttp_0007
IMPORT_FUNC "sceHttp",0x15540184,sceHttpDeleteHeader
#endif
#ifdef F_sceHttp_0008
IMPORT_FUNC "sceHttp",0x1A0EBB69,sceHttpDisableRedirect
#endif
#ifdef F_sceHttp_0009
IMPORT_FUNC "sceHttp",0x1CEDB9D4,sceHttpFlushCache
#endif
#ifdef F_sceHttp_0010
IMPORT_FUNC "sceHttp",0x1F0FC3E3,sceHttpSetRecvTimeOut
#endif
#ifdef F_sceHttp_0011
IMPORT_FUNC "sceHttp",0x2255551E,sceHttpGetNetworkPspError
#endif
#ifdef F_sceHttp_0012
IMPORT_FUNC "sceHttp",0x267618F4,sceHttpSetAuthInfoCallback
#endif
#ifdef F_sceHttp_0013
IMPORT_FUNC "sceHttp",0x2A6C3296,sceHttpSetAuthInfoCB
#endif
#ifdef F_sceHttp_0014
IMPORT_FUNC "sceHttp",0x2C3C82CF,sceHttpFlushAuthList
#endif
#ifdef F_sceHttp_0015
IMPORT_FUNC "sceHttp",0x3A67F306,sceHttpSetCookieRecvCallback
#endif
#ifdef F_sceHttp_0016
IMPORT_FUNC "sceHttp",0x3C478044,sceHttp_3C478044
#endif
#ifdef F_sceHttp_0017
IMPORT_FUNC "sceHttp",0x3EABA285,sceHttpAddExtraHeader
#endif
#ifdef F_sceHttp_0018
IMPORT_FUNC "sceHttp",0x457D221D,sceHttp_457D221D
#endif
#ifdef F_sceHttp_0019
IMPORT_FUNC "sceHttp",0x47347B50,sceHttpCreateRequest
#endif
#ifdef F_sceHttp_0020
IMPORT_FUNC "sceHttp",0x47940436,sceHttpSetResolveTimeOut
#endif
#ifdef F_sceHttp_0021
IMPORT_FUNC "sceHttp",0x4CC7D78F,sceHttpGetStatusCode
#endif
#ifdef F_sceHttp_0022
IMPORT_FUNC "sceHttp",0x4E4A284A,sceHttp_4E4A284A
#endif
#ifdef F_sceHttp_0023
IMPORT_FUNC "sceHttp",0x5152773B,sceHttpDeleteConnection
#endif
#ifdef F_sceHttp_0024
IMPORT_FUNC "sceHttp",0x54E7DF75,sceHttpIsRequestInCache
#endif
#ifdef F_sceHttp_0025
IMPORT_FUNC "sceHttp",0x569A1481,sceHttpsSetSslCallback
#endif
#ifdef F_sceHttp_0026
IMPORT_FUNC "sceHttp",0x59E6D16F,sceHttpEnableCache
#endif
#ifdef F_sceHttp_0027
IMPORT_FUNC "sceHttp",0x68AB0F86,sceHttpsInitWithPath
#endif
#ifdef F_sceHttp_0028
IMPORT_FUNC "sceHttp",0x739C2D79,sceHttp_739C2D79
#endif
#ifdef F_sceHttp_0029
IMPORT_FUNC "sceHttp",0x76D1363B,sceHttpSaveSystemCookie
#endif
#ifdef F_sceHttp_0030
IMPORT_FUNC "sceHttp",0x7774BF4C,sceHttpAddCookie
#endif
#ifdef F_sceHttp_0031
IMPORT_FUNC "sceHttp",0x77EE5319,sceHttp_77EE5319
#endif
#ifdef F_sceHttp_0032
IMPORT_FUNC "sceHttp",0x78A0D3EC,sceHttpEnableKeepAlive
#endif
#ifdef F_sceHttp_0033
IMPORT_FUNC "sceHttp",0x78B54C09,sceHttpEndCache
#endif
#ifdef F_sceHttp_0034
IMPORT_FUNC "sceHttp",0x8046E250,sceHttp_8046E250
#endif
#ifdef F_sceHttp_0035
IMPORT_FUNC "sceHttp",0x87797BDD,sceHttpsLoadDefaultCert
#endif
#ifdef F_sceHttp_0036
IMPORT_FUNC "sceHttp",0x87F1E666,sceHttp_87F1E666
#endif
#ifdef F_sceHttp_0037
IMPORT_FUNC "sceHttp",0x8ACD1F73,sceHttpSetConnectTimeOut
#endif
#ifdef F_sceHttp_0038
IMPORT_FUNC "sceHttp",0x8EEFD953,sceHttpCreateConnection
#endif
#ifdef F_sceHttp_0039
IMPORT_FUNC "sceHttp",0x951D310E,sceHttp_951D310E
#endif
#ifdef F_sceHttp_0040
IMPORT_FUNC "sceHttp",0x9668864C,sceHttpSetRecvBlockSize
#endif
#ifdef F_sceHttp_0041
IMPORT_FUNC "sceHttp",0x96F16D3E,sceHttpGetCookie
#endif
#ifdef F_sceHttp_0042
IMPORT_FUNC "sceHttp",0x9988172D,sceHttpSetSendTimeOut
#endif
#ifdef F_sceHttp_0043
IMPORT_FUNC "sceHttp",0x9AFC98B2,sceHttpSendRequestInCacheFirstMode
#endif
#ifdef F_sceHttp_0044
IMPORT_FUNC "sceHttp",0x9B1F1F36,sceHttpCreateTemplate
#endif
#ifdef F_sceHttp_0045
IMPORT_FUNC "sceHttp",0x9FC5F10D,sceHttpEnableAuth
#endif
#ifdef F_sceHttp_0046
IMPORT_FUNC "sceHttp",0xA4496DE5,sceHttpSetRedirectCallback
#endif
#ifdef F_sceHttp_0047
IMPORT_FUNC "sceHttp",0xA461A167,sceHttp_A461A167
#endif
#ifdef F_sceHttp_0048
IMPORT_FUNC "sceHttp",0xA5512E01,sceHttpDeleteRequest
#endif
#ifdef F_sceHttp_0049
IMPORT_FUNC "sceHttp",0xA6800C34,sceHttpInitCache
#endif
#ifdef F_sceHttp_0050
IMPORT_FUNC "sceHttp",0xA909F2AE,sceHttp_A909F2AE
#endif
#ifdef F_sceHttp_0051
IMPORT_FUNC "sceHttp",0xAB1540D5,sceHttpsGetSslError
#endif
#ifdef F_sceHttp_0052
IMPORT_FUNC "sceHttp",0xAB1ABE07,sceHttpInit
#endif
#ifdef F_sceHttp_0053
IMPORT_FUNC "sceHttp",0xAE948FEE,sceHttpDisableAuth
#endif
#ifdef F_sceHttp_0054
IMPORT_FUNC "sceHttp",0xB0257723,sceHttp_B0257723
#endif
#ifdef F_sceHttp_0055
IMPORT_FUNC "sceHttp",0xB0C34B1D,sceHttpSetCacheContentLengthMaxSize
#endif
#ifdef F_sceHttp_0056
IMPORT_FUNC "sceHttp",0xB3FAF831,sceHttpsDisableOption
#endif
#ifdef F_sceHttp_0057
IMPORT_FUNC "sceHttp",0xB509B09E,sceHttpCreateRequestWithURL
#endif
#ifdef F_sceHttp_0058
IMPORT_FUNC "sceHttp",0xBAC31BF1,sceHttpsEnableOption
#endif
#ifdef F_sceHttp_0059
IMPORT_FUNC "sceHttp",0xBB70706F,sceHttpSendRequest
#endif
#ifdef F_sceHttp_0060
IMPORT_FUNC "sceHttp",0xC0E69162,sceHttp_C0E69162
#endif
#ifdef F_sceHttp_0061
IMPORT_FUNC "sceHttp",0xC10B6BD9,sceHttpAbortRequest
#endif
#ifdef F_sceHttp_0062
IMPORT_FUNC "sceHttp",0xC6330B0D,sceHttp_C6330B0D
#endif
#ifdef F_sceHttp_0063
IMPORT_FUNC "sceHttp",0xC7EF2559,sceHttpDisableKeepAlive
#endif
#ifdef F_sceHttp_0064
IMPORT_FUNC "sceHttp",0xC98CBBA7,sceHttpSetResHeaderMaxSize
#endif
#ifdef F_sceHttp_0065
IMPORT_FUNC "sceHttp",0xCC920C12,sceHttp_CC920C12
#endif
#ifdef F_sceHttp_0066
IMPORT_FUNC "sceHttp",0xCCBD167A,sceHttpDisableCache
#endif
#ifdef F_sceHttp_0067
IMPORT_FUNC "sceHttp",0xCDB0DC58,sceHttp_CDB0DC58
#endif
#ifdef F_sceHttp_0068
IMPORT_FUNC "sceHttp",0xCDF8ECB9,sceHttpCreateConnectionWithURL
#endif
#ifdef F_sceHttp_0069
IMPORT_FUNC "sceHttp",0xD081EC8F,sceHttpGetNetworkErrno
#endif
#ifdef F_sceHttp_0070
IMPORT_FUNC "sceHttp",0xD11DAB01,sceHttpsGetCaList
#endif
#ifdef F_sceHttp_0071
IMPORT_FUNC "sceHttp",0xD1C8945E,sceHttpEnd
#endif
#ifdef F_sceHttp_0072
IMPORT_FUNC "sceHttp",0xD29163DA,sceHttp_D29163DA
#endif
#ifdef F_sceHttp_0073
IMPORT_FUNC "sceHttp",0xD70D4847,sceHttpGetProxy
#endif
#ifdef F_sceHttp_0074
IMPORT_FUNC "sceHttp",0xD80BE761,sceHttp_D80BE761
#endif
#ifdef F_sceHttp_0075
IMPORT_FUNC "sceHttp",0xDB266CCF,sceHttpGetAllHeader
#endif
#ifdef F_sceHttp_0076
IMPORT_FUNC "sceHttp",0xDD6E7857,sceHttp_DD6E7857
#endif
#ifdef F_sceHttp_0077
IMPORT_FUNC "sceHttp",0xE4D21302,sceHttpsInit
#endif
#ifdef F_sceHttp_0078
IMPORT_FUNC "sceHttp",0xEDEEB999,sceHttpReadData
#endif
#ifdef F_sceHttp_0079
IMPORT_FUNC "sceHttp",0xF0F46C62,sceHttpSetProxy
#endif
#ifdef F_sceHttp_0080
IMPORT_FUNC "sceHttp",0xF1657B22,sceHttpLoadSystemCookie
#endif
#ifdef F_sceHttp_0081
IMPORT_FUNC "sceHttp",0xF49934F6,sceHttpSetMallocFunction
#endif
#ifdef F_sceHttp_0082
IMPORT_FUNC "sceHttp",0xF9D8EB63,sceHttpsEnd
#endif
#ifdef F_sceHttp_0083
IMPORT_FUNC "sceHttp",0xFCF8C055,sceHttpDeleteTemplate
#endif

31
src/net/sceNet.S Normal file
View File

@@ -0,0 +1,31 @@
.set noreorder
#include "pspimport.s"
#ifdef F_sceNet_0000
IMPORT_START "sceNet",0x00090000
#endif
#ifdef F_sceNet_0001
IMPORT_FUNC "sceNet",0x39AF39A6,sceNetInit
#endif
#ifdef F_sceNet_0002
IMPORT_FUNC "sceNet",0x281928A9,sceNetTerm
#endif
#ifdef F_sceNet_0003
IMPORT_FUNC "sceNet",0x50647530,sceNetFreeThreadinfo
#endif
#ifdef F_sceNet_0004
IMPORT_FUNC "sceNet",0xAD6844C6,sceNetThreadAbort
#endif
#ifdef F_sceNet_0005
IMPORT_FUNC "sceNet",0x89360950,sceNetEtherNtostr
#endif
#ifdef F_sceNet_0006
IMPORT_FUNC "sceNet",0xD27961C9,sceNetEtherStrton
#endif
#ifdef F_sceNet_0007
IMPORT_FUNC "sceNet",0x0BF0A3AE,sceNetGetLocalEtherAddr
#endif
#ifdef F_sceNet_0008
IMPORT_FUNC "sceNet",0xCC393E48,sceNetGetMallocStat
#endif

82
src/net/sceNetAdhoc.S Normal file
View File

@@ -0,0 +1,82 @@
.set noreorder
#include "pspimport.s"
#ifdef F_sceNetAdhoc_0000
IMPORT_START "sceNetAdhoc",0x00090000
#endif
#ifdef F_sceNetAdhoc_0001
IMPORT_FUNC "sceNetAdhoc",0xE1D621D7,sceNetAdhocInit
#endif
#ifdef F_sceNetAdhoc_0002
IMPORT_FUNC "sceNetAdhoc",0xA62C6F57,sceNetAdhocTerm
#endif
#ifdef F_sceNetAdhoc_0003
IMPORT_FUNC "sceNetAdhoc",0x7A662D6B,sceNetAdhocPollSocket
#endif
#ifdef F_sceNetAdhoc_0004
IMPORT_FUNC "sceNetAdhoc",0x73BFD52D,sceNetAdhocSetSocketAlert
#endif
#ifdef F_sceNetAdhoc_0005
IMPORT_FUNC "sceNetAdhoc",0x4D2CE199,sceNetAdhocGetSocketAlert
#endif
#ifdef F_sceNetAdhoc_0006
IMPORT_FUNC "sceNetAdhoc",0x6F92741B,sceNetAdhocPdpCreate
#endif
#ifdef F_sceNetAdhoc_0007
IMPORT_FUNC "sceNetAdhoc",0xABED3790,sceNetAdhocPdpSend
#endif
#ifdef F_sceNetAdhoc_0008
IMPORT_FUNC "sceNetAdhoc",0xDFE53E03,sceNetAdhocPdpRecv
#endif
#ifdef F_sceNetAdhoc_0009
IMPORT_FUNC "sceNetAdhoc",0x7F27BB5E,sceNetAdhocPdpDelete
#endif
#ifdef F_sceNetAdhoc_0010
IMPORT_FUNC "sceNetAdhoc",0xC7C1FC57,sceNetAdhocGetPdpStat
#endif
#ifdef F_sceNetAdhoc_0011
IMPORT_FUNC "sceNetAdhoc",0x877F6D66,sceNetAdhocPtpOpen
#endif
#ifdef F_sceNetAdhoc_0012
IMPORT_FUNC "sceNetAdhoc",0xFC6FC07B,sceNetAdhocPtpConnect
#endif
#ifdef F_sceNetAdhoc_0013
IMPORT_FUNC "sceNetAdhoc",0xE08BDAC1,sceNetAdhocPtpListen
#endif
#ifdef F_sceNetAdhoc_0014
IMPORT_FUNC "sceNetAdhoc",0x9DF81198,sceNetAdhocPtpAccept
#endif
#ifdef F_sceNetAdhoc_0015
IMPORT_FUNC "sceNetAdhoc",0x4DA4C788,sceNetAdhocPtpSend
#endif
#ifdef F_sceNetAdhoc_0016
IMPORT_FUNC "sceNetAdhoc",0x8BEA2B3E,sceNetAdhocPtpRecv
#endif
#ifdef F_sceNetAdhoc_0017
IMPORT_FUNC "sceNetAdhoc",0x9AC2EEAC,sceNetAdhocPtpFlush
#endif
#ifdef F_sceNetAdhoc_0018
IMPORT_FUNC "sceNetAdhoc",0x157E6225,sceNetAdhocPtpClose
#endif
#ifdef F_sceNetAdhoc_0019
IMPORT_FUNC "sceNetAdhoc",0xB9685118,sceNetAdhocGetPtpStat
#endif
#ifdef F_sceNetAdhoc_0020
IMPORT_FUNC "sceNetAdhoc",0x7F75C338,sceNetAdhocGameModeCreateMaster
#endif
#ifdef F_sceNetAdhoc_0021
IMPORT_FUNC "sceNetAdhoc",0x3278AB0C,sceNetAdhocGameModeCreateReplica
#endif
#ifdef F_sceNetAdhoc_0022
IMPORT_FUNC "sceNetAdhoc",0x98C204C8,sceNetAdhocGameModeUpdateMaster
#endif
#ifdef F_sceNetAdhoc_0023
IMPORT_FUNC "sceNetAdhoc",0xFA324B4E,sceNetAdhocGameModeUpdateReplica
#endif
#ifdef F_sceNetAdhoc_0024
IMPORT_FUNC "sceNetAdhoc",0xA0229362,sceNetAdhocGameModeDeleteMaster
#endif
#ifdef F_sceNetAdhoc_0025
IMPORT_FUNC "sceNetAdhoc",0x0B2228E9,sceNetAdhocGameModeDeleteReplica
#endif

View File

@@ -0,0 +1,55 @@
.set noreorder
#include "pspimport.s"
#ifdef F_sceNetAdhocMatching_0000
IMPORT_START "sceNetAdhocMatching",0x00090000
#endif
#ifdef F_sceNetAdhocMatching_0001
IMPORT_FUNC "sceNetAdhocMatching",0x2A2A1E07,sceNetAdhocMatchingInit
#endif
#ifdef F_sceNetAdhocMatching_0002
IMPORT_FUNC "sceNetAdhocMatching",0x7945ECDA,sceNetAdhocMatchingTerm
#endif
#ifdef F_sceNetAdhocMatching_0003
IMPORT_FUNC "sceNetAdhocMatching",0xCA5EDA6F,sceNetAdhocMatchingCreate
#endif
#ifdef F_sceNetAdhocMatching_0004
IMPORT_FUNC "sceNetAdhocMatching",0x93EF3843,sceNetAdhocMatchingStart
#endif
#ifdef F_sceNetAdhocMatching_0005
IMPORT_FUNC "sceNetAdhocMatching",0x32B156B3,sceNetAdhocMatchingStop
#endif
#ifdef F_sceNetAdhocMatching_0006
IMPORT_FUNC "sceNetAdhocMatching",0xF16EAF4F,sceNetAdhocMatchingDelete
#endif
#ifdef F_sceNetAdhocMatching_0007
IMPORT_FUNC "sceNetAdhocMatching",0x5E3D4B79,sceNetAdhocMatchingSelectTarget
#endif
#ifdef F_sceNetAdhocMatching_0008
IMPORT_FUNC "sceNetAdhocMatching",0xEA3C6108,sceNetAdhocMatchingCancelTarget
#endif
#ifdef F_sceNetAdhocMatching_0009
IMPORT_FUNC "sceNetAdhocMatching",0xB58E61B7,sceNetAdhocMatchingSetHelloOpt
#endif
#ifdef F_sceNetAdhocMatching_0010
IMPORT_FUNC "sceNetAdhocMatching",0xB5D96C2A,sceNetAdhocMatchingGetHelloOpt
#endif
#ifdef F_sceNetAdhocMatching_0011
IMPORT_FUNC "sceNetAdhocMatching",0xC58BCD9E,sceNetAdhocMatchingGetMembers
#endif
#ifdef F_sceNetAdhocMatching_0012
IMPORT_FUNC "sceNetAdhocMatching",0x40F8F435,sceNetAdhocMatchingGetPoolMaxAlloc
#endif
#ifdef F_sceNetAdhocMatching_0013
IMPORT_FUNC "sceNetAdhocMatching",0x8F58BEDF,sceNetAdhocMatchingCancelTargetWithOpt
#endif
#ifdef F_sceNetAdhocMatching_0014
IMPORT_FUNC "sceNetAdhocMatching",0x9C5CFB7D,sceNetAdhocMatchingGetPoolStat
#endif
#ifdef F_sceNetAdhocMatching_0015
IMPORT_FUNC "sceNetAdhocMatching",0xF79472D7,sceNetAdhocMatchingSendData
#endif
#ifdef F_sceNetAdhocMatching_0016
IMPORT_FUNC "sceNetAdhocMatching",0xEC19337D,sceNetAdhocMatchingAbortSendData
#endif

70
src/net/sceNetAdhocctl.S Normal file
View File

@@ -0,0 +1,70 @@
.set noreorder
#include "pspimport.s"
#ifdef F_sceNetAdhocctl_0000
IMPORT_START "sceNetAdhocctl",0x00090000
#endif
#ifdef F_sceNetAdhocctl_0001
IMPORT_FUNC "sceNetAdhocctl",0xE26F226E,sceNetAdhocctlInit
#endif
#ifdef F_sceNetAdhocctl_0002
IMPORT_FUNC "sceNetAdhocctl",0x9D689E13,sceNetAdhocctlTerm
#endif
#ifdef F_sceNetAdhocctl_0003
IMPORT_FUNC "sceNetAdhocctl",0x0AD043ED,sceNetAdhocctlConnect
#endif
#ifdef F_sceNetAdhocctl_0004
IMPORT_FUNC "sceNetAdhocctl",0xEC0635C1,sceNetAdhocctlCreate
#endif
#ifdef F_sceNetAdhocctl_0005
IMPORT_FUNC "sceNetAdhocctl",0x5E7F79C9,sceNetAdhocctlJoin
#endif
#ifdef F_sceNetAdhocctl_0006
IMPORT_FUNC "sceNetAdhocctl",0x08FFF7A0,sceNetAdhocctlScan
#endif
#ifdef F_sceNetAdhocctl_0007
IMPORT_FUNC "sceNetAdhocctl",0x34401D65,sceNetAdhocctlDisconnect
#endif
#ifdef F_sceNetAdhocctl_0008
IMPORT_FUNC "sceNetAdhocctl",0x20B317A0,sceNetAdhocctlAddHandler
#endif
#ifdef F_sceNetAdhocctl_0009
IMPORT_FUNC "sceNetAdhocctl",0x6402490B,sceNetAdhocctlDelHandler
#endif
#ifdef F_sceNetAdhocctl_0010
IMPORT_FUNC "sceNetAdhocctl",0x75ECD386,sceNetAdhocctlGetState
#endif
#ifdef F_sceNetAdhocctl_0011
IMPORT_FUNC "sceNetAdhocctl",0x362CBE8F,sceNetAdhocctlGetAdhocId
#endif
#ifdef F_sceNetAdhocctl_0012
IMPORT_FUNC "sceNetAdhocctl",0xE162CB14,sceNetAdhocctlGetPeerList
#endif
#ifdef F_sceNetAdhocctl_0013
IMPORT_FUNC "sceNetAdhocctl",0x99560ABE,sceNetAdhocctlGetAddrByName
#endif
#ifdef F_sceNetAdhocctl_0014
IMPORT_FUNC "sceNetAdhocctl",0x8916C003,sceNetAdhocctlGetNameByAddr
#endif
#ifdef F_sceNetAdhocctl_0015
IMPORT_FUNC "sceNetAdhocctl",0xDED9D28E,sceNetAdhocctlGetParameter
#endif
#ifdef F_sceNetAdhocctl_0016
IMPORT_FUNC "sceNetAdhocctl",0x81AEE1BE,sceNetAdhocctlGetScanInfo
#endif
#ifdef F_sceNetAdhocctl_0017
IMPORT_FUNC "sceNetAdhocctl",0xA5C055CE,sceNetAdhocctlCreateEnterGameMode
#endif
#ifdef F_sceNetAdhocctl_0018
IMPORT_FUNC "sceNetAdhocctl",0x1FF89745,sceNetAdhocctlJoinEnterGameMode
#endif
#ifdef F_sceNetAdhocctl_0019
IMPORT_FUNC "sceNetAdhocctl",0xCF8E084D,sceNetAdhocctlExitGameMode
#endif
#ifdef F_sceNetAdhocctl_0020
IMPORT_FUNC "sceNetAdhocctl",0x5A014CE0,sceNetAdhocctlGetGameModeInfo
#endif
#ifdef F_sceNetAdhocctl_0021
IMPORT_FUNC "sceNetAdhocctl",0x8DB83FDC,sceNetAdhocctlGetPeerInfo
#endif

31
src/net/sceNetApctl.S Normal file
View File

@@ -0,0 +1,31 @@
.set noreorder
#include "pspimport.s"
#ifdef F_sceNetApctl_0000
IMPORT_START "sceNetApctl",0x00090000
#endif
#ifdef F_sceNetApctl_0001
IMPORT_FUNC "sceNetApctl",0xE2F91F9B,sceNetApctlInit
#endif
#ifdef F_sceNetApctl_0002
IMPORT_FUNC "sceNetApctl",0xB3EDD0EC,sceNetApctlTerm
#endif
#ifdef F_sceNetApctl_0003
IMPORT_FUNC "sceNetApctl",0x2BEFDF23,sceNetApctlGetInfo
#endif
#ifdef F_sceNetApctl_0004
IMPORT_FUNC "sceNetApctl",0x8ABADD51,sceNetApctlAddHandler
#endif
#ifdef F_sceNetApctl_0005
IMPORT_FUNC "sceNetApctl",0x5963991B,sceNetApctlDelHandler
#endif
#ifdef F_sceNetApctl_0006
IMPORT_FUNC "sceNetApctl",0xCFB957C6,sceNetApctlConnect
#endif
#ifdef F_sceNetApctl_0007
IMPORT_FUNC "sceNetApctl",0x24FE91A1,sceNetApctlDisconnect
#endif
#ifdef F_sceNetApctl_0008
IMPORT_FUNC "sceNetApctl",0x5DEAC81B,sceNetApctlGetState
#endif

97
src/net/sceNetInet.S Normal file
View File

@@ -0,0 +1,97 @@
.set noreorder
#include "pspimport.s"
#ifdef F_sceNetInet_0000
IMPORT_START "sceNetInet",0x00090000
#endif
#ifdef F_sceNetInet_0001
IMPORT_FUNC "sceNetInet",0x17943399,sceNetInetInit
#endif
#ifdef F_sceNetInet_0002
IMPORT_FUNC "sceNetInet",0xA9ED66B9,sceNetInetTerm
#endif
#ifdef F_sceNetInet_0003
IMPORT_FUNC "sceNetInet",0xDB094E1B,sceNetInetAccept
#endif
#ifdef F_sceNetInet_0004
IMPORT_FUNC "sceNetInet",0x1A33F9AE,sceNetInetBind
#endif
#ifdef F_sceNetInet_0005
IMPORT_FUNC "sceNetInet",0x8D7284EA,sceNetInetClose
#endif
#ifdef F_sceNetInet_0006
IMPORT_FUNC "sceNetInet",0x805502DD,sceNetInetCloseWithRST
#endif
#ifdef F_sceNetInet_0007
IMPORT_FUNC "sceNetInet",0x410B34AA,sceNetInetConnect
#endif
#ifdef F_sceNetInet_0008
IMPORT_FUNC "sceNetInet",0xE247B6D6,sceNetInetGetpeername
#endif
#ifdef F_sceNetInet_0009
IMPORT_FUNC "sceNetInet",0x162E6FD5,sceNetInetGetsockname
#endif
#ifdef F_sceNetInet_0010
IMPORT_FUNC "sceNetInet",0x4A114C7C,sceNetInetGetsockopt
#endif
#ifdef F_sceNetInet_0011
IMPORT_FUNC "sceNetInet",0xD10A1A7A,sceNetInetListen
#endif
#ifdef F_sceNetInet_0012
IMPORT_FUNC "sceNetInet",0xFAABB1DD,sceNetInetPoll
#endif
#ifdef F_sceNetInet_0013
IMPORT_FUNC "sceNetInet",0xCDA85C99,sceNetInetRecv
#endif
#ifdef F_sceNetInet_0014
IMPORT_FUNC "sceNetInet",0xC91142E4,sceNetInetRecvfrom
#endif
#ifdef F_sceNetInet_0015
IMPORT_FUNC "sceNetInet",0xEECE61D2,sceNetInetRecvmsg
#endif
#ifdef F_sceNetInet_0016
IMPORT_FUNC "sceNetInet",0x5BE8D595,sceNetInetSelect
#endif
#ifdef F_sceNetInet_0017
IMPORT_FUNC "sceNetInet",0x7AA671BC,sceNetInetSend
#endif
#ifdef F_sceNetInet_0018
IMPORT_FUNC "sceNetInet",0x05038FC7,sceNetInetSendto
#endif
#ifdef F_sceNetInet_0019
IMPORT_FUNC "sceNetInet",0x774E36F4,sceNetInetSendmsg
#endif
#ifdef F_sceNetInet_0020
IMPORT_FUNC "sceNetInet",0x2FE71FE7,sceNetInetSetsockopt
#endif
#ifdef F_sceNetInet_0021
IMPORT_FUNC "sceNetInet",0x4CFE4E56,sceNetInetShutdown
#endif
#ifdef F_sceNetInet_0022
IMPORT_FUNC "sceNetInet",0x8B7B220F,sceNetInetSocket
#endif
#ifdef F_sceNetInet_0023
IMPORT_FUNC "sceNetInet",0x80A21ABD,sceNetInetSocketAbort
#endif
#ifdef F_sceNetInet_0024
IMPORT_FUNC "sceNetInet",0xFBABE411,sceNetInetGetErrno
#endif
#ifdef F_sceNetInet_0025
IMPORT_FUNC "sceNetInet",0xB3888AD4,sceNetInetGetTcpcbstat
#endif
#ifdef F_sceNetInet_0026
IMPORT_FUNC "sceNetInet",0x39B0C7D3,sceNetInetGetUdpcbstat
#endif
#ifdef F_sceNetInet_0027
IMPORT_FUNC "sceNetInet",0xB75D5B0A,sceNetInetInetAddr
#endif
#ifdef F_sceNetInet_0028
IMPORT_FUNC "sceNetInet",0x1BDF5D13,sceNetInetInetAton
#endif
#ifdef F_sceNetInet_0029
IMPORT_FUNC "sceNetInet",0xD0792666,sceNetInetInetNtop
#endif
#ifdef F_sceNetInet_0030
IMPORT_FUNC "sceNetInet",0xE30B8C19,sceNetInetInetPton
#endif

28
src/net/sceNetResolver.S Normal file
View File

@@ -0,0 +1,28 @@
.set noreorder
#include "pspimport.s"
#ifdef F_sceNetResolver_0000
IMPORT_START "sceNetResolver",0x00090000
#endif
#ifdef F_sceNetResolver_0001
IMPORT_FUNC "sceNetResolver",0xF3370E61,sceNetResolverInit
#endif
#ifdef F_sceNetResolver_0002
IMPORT_FUNC "sceNetResolver",0x6138194A,sceNetResolverTerm
#endif
#ifdef F_sceNetResolver_0003
IMPORT_FUNC "sceNetResolver",0x244172AF,sceNetResolverCreate
#endif
#ifdef F_sceNetResolver_0004
IMPORT_FUNC "sceNetResolver",0x94523E09,sceNetResolverDelete
#endif
#ifdef F_sceNetResolver_0005
IMPORT_FUNC "sceNetResolver",0x224C5F44,sceNetResolverStartNtoA
#endif
#ifdef F_sceNetResolver_0006
IMPORT_FUNC "sceNetResolver",0x629E2FB7,sceNetResolverStartAtoN
#endif
#ifdef F_sceNetResolver_0007
IMPORT_FUNC "sceNetResolver",0x808F6063,sceNetResolverStop
#endif

295
src/net/sceNet_lib.S Normal file
View File

@@ -0,0 +1,295 @@
.set noreorder
#include "pspimport.s"
#ifdef F_sceNet_lib_0000
IMPORT_START "sceNet_lib",0x00090000
#endif
#ifdef F_sceNet_lib_0001
IMPORT_FUNC "sceNet_lib",0x3B617AA0,sceNet_lib_3B617AA0
#endif
#ifdef F_sceNet_lib_0002
IMPORT_FUNC "sceNet_lib",0xDB88F458,sceNet_lib_DB88F458
#endif
#ifdef F_sceNet_lib_0003
IMPORT_FUNC "sceNet_lib",0xB6FC0A5B,sceNet_lib_B6FC0A5B
#endif
#ifdef F_sceNet_lib_0004
IMPORT_FUNC "sceNet_lib",0xC431A214,sceNet_lib_C431A214
#endif
#ifdef F_sceNet_lib_0005
IMPORT_FUNC "sceNet_lib",0xBFCFEFF6,sceNet_lib_BFCFEFF6
#endif
#ifdef F_sceNet_lib_0006
IMPORT_FUNC "sceNet_lib",0xE1F4696F,sceNet_lib_E1F4696F
#endif
#ifdef F_sceNet_lib_0007
IMPORT_FUNC "sceNet_lib",0x5216CBF5,sceNet_lib_5216CBF5
#endif
#ifdef F_sceNet_lib_0008
IMPORT_FUNC "sceNet_lib",0xD2422E4D,sceNet_lib_D2422E4D
#endif
#ifdef F_sceNet_lib_0009
IMPORT_FUNC "sceNet_lib",0xD1BE2CE9,sceNet_lib_D1BE2CE9
#endif
#ifdef F_sceNet_lib_0010
IMPORT_FUNC "sceNet_lib",0xAB7DD9A5,sceNet_lib_AB7DD9A5
#endif
#ifdef F_sceNet_lib_0011
IMPORT_FUNC "sceNet_lib",0x80E1933E,sceNet_lib_80E1933E
#endif
#ifdef F_sceNet_lib_0012
IMPORT_FUNC "sceNet_lib",0x7BA3ED91,sceNet_lib_7BA3ED91
#endif
#ifdef F_sceNet_lib_0013
IMPORT_FUNC "sceNet_lib",0x03164B12,sceNet_lib_03164B12
#endif
#ifdef F_sceNet_lib_0014
IMPORT_FUNC "sceNet_lib",0x389728AB,sceNet_lib_389728AB
#endif
#ifdef F_sceNet_lib_0015
IMPORT_FUNC "sceNet_lib",0x4BF9E1DE,sceNet_lib_4BF9E1DE
#endif
#ifdef F_sceNet_lib_0016
IMPORT_FUNC "sceNet_lib",0xD5B64E37,sceNet_lib_D5B64E37
#endif
#ifdef F_sceNet_lib_0017
IMPORT_FUNC "sceNet_lib",0xDA02F383,sceNet_lib_DA02F383
#endif
#ifdef F_sceNet_lib_0018
IMPORT_FUNC "sceNet_lib",0xAFA11338,sceNet_lib_AFA11338
#endif
#ifdef F_sceNet_lib_0019
IMPORT_FUNC "sceNet_lib",0xB20F84F8,sceNet_lib_B20F84F8
#endif
#ifdef F_sceNet_lib_0020
IMPORT_FUNC "sceNet_lib",0x83FE280A,sceNet_lib_83FE280A
#endif
#ifdef F_sceNet_lib_0021
IMPORT_FUNC "sceNet_lib",0x4F8F3808,sceNet_lib_4F8F3808
#endif
#ifdef F_sceNet_lib_0022
IMPORT_FUNC "sceNet_lib",0x891723D5,sceNet_lib_891723D5
#endif
#ifdef F_sceNet_lib_0023
IMPORT_FUNC "sceNet_lib",0x0DFF67F9,sceNet_lib_0DFF67F9
#endif
#ifdef F_sceNet_lib_0024
IMPORT_FUNC "sceNet_lib",0xF355C73B,sceNet_lib_F355C73B
#endif
#ifdef F_sceNet_lib_0025
IMPORT_FUNC "sceNet_lib",0xA55C914F,sceNet_lib_A55C914F
#endif
#ifdef F_sceNet_lib_0026
IMPORT_FUNC "sceNet_lib",0x0D633F53,sceNet_lib_0D633F53
#endif
#ifdef F_sceNet_lib_0027
IMPORT_FUNC "sceNet_lib",0x8D33C11D,sceNetConfigGetEtherAddr
#endif
#ifdef F_sceNet_lib_0028
IMPORT_FUNC "sceNet_lib",0x522A971B,sceNet_lib_522A971B
#endif
#ifdef F_sceNet_lib_0029
IMPORT_FUNC "sceNet_lib",0x1858883D,sceNetRand
#endif
#ifdef F_sceNet_lib_0030
IMPORT_FUNC "sceNet_lib",0x75D9985C,sceNet_lib_75D9985C
#endif
#ifdef F_sceNet_lib_0031
IMPORT_FUNC "sceNet_lib",0x25CC373A,sceNet_lib_25CC373A
#endif
#ifdef F_sceNet_lib_0032
IMPORT_FUNC "sceNet_lib",0xDCBC596E,sceNet_lib_DCBC596E
#endif
#ifdef F_sceNet_lib_0033
IMPORT_FUNC "sceNet_lib",0x7C86FBA4,sceNet_lib_7C86FBA4
#endif
#ifdef F_sceNet_lib_0034
IMPORT_FUNC "sceNet_lib",0xA8B6205A,sceNet_lib_A8B6205A
#endif
#ifdef F_sceNet_lib_0035
IMPORT_FUNC "sceNet_lib",0xA93A93E9,sceNet_lib_A93A93E9
#endif
#ifdef F_sceNet_lib_0036
IMPORT_FUNC "sceNet_lib",0x6B294EE4,sceNet_lib_6B294EE4
#endif
#ifdef F_sceNet_lib_0037
IMPORT_FUNC "sceNet_lib",0x51C209B2,sceNet_lib_51C209B2
#endif
#ifdef F_sceNet_lib_0038
IMPORT_FUNC "sceNet_lib",0xC9C97945,sceNet_lib_C9C97945
#endif
#ifdef F_sceNet_lib_0039
IMPORT_FUNC "sceNet_lib",0xB8C4A858,sceNet_lib_B8C4A858
#endif
#ifdef F_sceNet_lib_0040
IMPORT_FUNC "sceNet_lib",0x205E8D17,sceNet_lib_205E8D17
#endif
#ifdef F_sceNet_lib_0041
IMPORT_FUNC "sceNet_lib",0xF6DB0A0B,sceNet_lib_F6DB0A0B
#endif
#ifdef F_sceNet_lib_0042
IMPORT_FUNC "sceNet_lib",0x7574FDA1,sceNet_lib_7574FDA1
#endif
#ifdef F_sceNet_lib_0043
IMPORT_FUNC "sceNet_lib",0xCA3CF5EB,sceNet_lib_CA3CF5EB
#endif
#ifdef F_sceNet_lib_0044
IMPORT_FUNC "sceNet_lib",0x757085B0,sceNet_lib_757085B0
#endif
#ifdef F_sceNet_lib_0045
IMPORT_FUNC "sceNet_lib",0x435843CB,sceNet_lib_435843CB
#endif
#ifdef F_sceNet_lib_0046
IMPORT_FUNC "sceNet_lib",0xD861EF33,sceNet_lib_D861EF33
#endif
#ifdef F_sceNet_lib_0047
IMPORT_FUNC "sceNet_lib",0xBB2B3DDB,sceNet_lib_BB2B3DDB
#endif
#ifdef F_sceNet_lib_0048
IMPORT_FUNC "sceNet_lib",0x6D5D42D7,sceNet_lib_6D5D42D7
#endif
#ifdef F_sceNet_lib_0049
IMPORT_FUNC "sceNet_lib",0xC21E18B2,sceNet_lib_C21E18B2
#endif
#ifdef F_sceNet_lib_0050
IMPORT_FUNC "sceNet_lib",0x45452B7B,sceNet_lib_45452B7B
#endif
#ifdef F_sceNet_lib_0051
IMPORT_FUNC "sceNet_lib",0x94B44F26,sceNet_lib_94B44F26
#endif
#ifdef F_sceNet_lib_0052
IMPORT_FUNC "sceNet_lib",0x515B2F33,sceNet_lib_515B2F33
#endif
#ifdef F_sceNet_lib_0053
IMPORT_FUNC "sceNet_lib",0x6DC71518,sceNet_lib_6DC71518
#endif
#ifdef F_sceNet_lib_0054
IMPORT_FUNC "sceNet_lib",0x7C3B86C5,sceNet_lib_7C3B86C5
#endif
#ifdef F_sceNet_lib_0055
IMPORT_FUNC "sceNet_lib",0x05D525E4,sceNet_lib_05D525E4
#endif
#ifdef F_sceNet_lib_0056
IMPORT_FUNC "sceNet_lib",0x1D10419C,sceNet_lib_1D10419C
#endif
#ifdef F_sceNet_lib_0057
IMPORT_FUNC "sceNet_lib",0xC2EC2EEA,sceNet_lib_C2EC2EEA
#endif
#ifdef F_sceNet_lib_0058
IMPORT_FUNC "sceNet_lib",0x710BD467,sceNet_lib_710BD467
#endif
#ifdef F_sceNet_lib_0059
IMPORT_FUNC "sceNet_lib",0x701DDDC3,sceNet_lib_701DDDC3
#endif
#ifdef F_sceNet_lib_0060
IMPORT_FUNC "sceNet_lib",0xD5A03BC0,sceNet_lib_D5A03BC0
#endif
#ifdef F_sceNet_lib_0061
IMPORT_FUNC "sceNet_lib",0xFA6DE6A6,sceNet_lib_FA6DE6A6
#endif
#ifdef F_sceNet_lib_0062
IMPORT_FUNC "sceNet_lib",0xEDB11CB4,sceNet_lib_EDB11CB4
#endif
#ifdef F_sceNet_lib_0063
IMPORT_FUNC "sceNet_lib",0x8C55B410,sceNet_lib_8C55B410
#endif
#ifdef F_sceNet_lib_0064
IMPORT_FUNC "sceNet_lib",0x13A8B98A,sceNet_lib_13A8B98A
#endif
#ifdef F_sceNet_lib_0065
IMPORT_FUNC "sceNet_lib",0xEA42B353,sceNet_lib_EA42B353
#endif
#ifdef F_sceNet_lib_0066
IMPORT_FUNC "sceNet_lib",0x45945E8D,sceNet_lib_45945E8D
#endif
#ifdef F_sceNet_lib_0067
IMPORT_FUNC "sceNet_lib",0xD60225A3,sceNet_lib_D60225A3
#endif
#ifdef F_sceNet_lib_0068
IMPORT_FUNC "sceNet_lib",0xEB6DE71A,sceNet_lib_EB6DE71A
#endif
#ifdef F_sceNet_lib_0069
IMPORT_FUNC "sceNet_lib",0xEDCC871E,sceNet_lib_EDCC871E
#endif
#ifdef F_sceNet_lib_0070
IMPORT_FUNC "sceNet_lib",0x4B2B3416,sceNet_lib_4B2B3416
#endif
#ifdef F_sceNet_lib_0071
IMPORT_FUNC "sceNet_lib",0x2B42872F,sceNet_lib_2B42872F
#endif
#ifdef F_sceNet_lib_0072
IMPORT_FUNC "sceNet_lib",0xC4261339,sceNet_lib_C4261339
#endif
#ifdef F_sceNet_lib_0073
IMPORT_FUNC "sceNet_lib",0x41FD8B5C,sceNet_lib_41FD8B5C
#endif
#ifdef F_sceNet_lib_0074
IMPORT_FUNC "sceNet_lib",0x92633D8D,sceNet_lib_92633D8D
#endif
#ifdef F_sceNet_lib_0075
IMPORT_FUNC "sceNet_lib",0xB9C780C7,sceNet_lib_B9C780C7
#endif
#ifdef F_sceNet_lib_0076
IMPORT_FUNC "sceNet_lib",0xB68E1EEA,sceNet_lib_B68E1EEA
#endif
#ifdef F_sceNet_lib_0077
IMPORT_FUNC "sceNet_lib",0xE155112D,sceNet_lib_E155112D
#endif
#ifdef F_sceNet_lib_0078
IMPORT_FUNC "sceNet_lib",0x41621EB0,sceNet_lib_41621EB0
#endif
#ifdef F_sceNet_lib_0079
IMPORT_FUNC "sceNet_lib",0x2E005032,sceNet_lib_2E005032
#endif
#ifdef F_sceNet_lib_0080
IMPORT_FUNC "sceNet_lib",0x33B230BD,sceNet_lib_33B230BD
#endif
#ifdef F_sceNet_lib_0081
IMPORT_FUNC "sceNet_lib",0x976AB1E9,sceNet_lib_976AB1E9
#endif
#ifdef F_sceNet_lib_0082
IMPORT_FUNC "sceNet_lib",0x4C8FD452,sceNet_lib_4C8FD452
#endif
#ifdef F_sceNet_lib_0083
IMPORT_FUNC "sceNet_lib",0x5ED457BE,sceNet_lib_5ED457BE
#endif
#ifdef F_sceNet_lib_0084
IMPORT_FUNC "sceNet_lib",0x31F3CDA1,sceNet_lib_31F3CDA1
#endif
#ifdef F_sceNet_lib_0085
IMPORT_FUNC "sceNet_lib",0x1F94AFD9,sceNet_lib_1F94AFD9
#endif
#ifdef F_sceNet_lib_0086
IMPORT_FUNC "sceNet_lib",0x0A5A8751,sceNet_lib_0A5A8751
#endif
#ifdef F_sceNet_lib_0087
IMPORT_FUNC "sceNet_lib",0xB3A48B7F,sceNet_lib_B3A48B7F
#endif
#ifdef F_sceNet_lib_0088
IMPORT_FUNC "sceNet_lib",0x949F1FBB,sceNet_lib_949F1FBB
#endif
#ifdef F_sceNet_lib_0089
IMPORT_FUNC "sceNet_lib",0x13672F83,sceNet_lib_13672F83
#endif
#ifdef F_sceNet_lib_0090
IMPORT_FUNC "sceNet_lib",0x5C7C7381,sceNet_lib_5C7C7381
#endif
#ifdef F_sceNet_lib_0091
IMPORT_FUNC "sceNet_lib",0x86B6DCD9,sceNet_lib_86B6DCD9
#endif
#ifdef F_sceNet_lib_0092
IMPORT_FUNC "sceNet_lib",0x7AE91FB4,sceNet_lib_7AE91FB4
#endif
#ifdef F_sceNet_lib_0093
IMPORT_FUNC "sceNet_lib",0x572AD6ED,sceNet_lib_572AD6ED
#endif
#ifdef F_sceNet_lib_0094
IMPORT_FUNC "sceNet_lib",0x87DC7A7E,sceNet_lib_87DC7A7E
#endif
#ifdef F_sceNet_lib_0095
IMPORT_FUNC "sceNet_lib",0x991FF86D,sceNet_lib_991FF86D
#endif
#ifdef F_sceNet_lib_0096
IMPORT_FUNC "sceNet_lib",0x5505D820,sceNet_lib_5505D820
#endif

43
src/net/sceSsl.S Normal file
View File

@@ -0,0 +1,43 @@
.set noreorder
#include "pspimport.s"
// Build List
// sceSsl_0000.o sceSsl_0001.o sceSsl_0002.o sceSsl_0003.o sceSsl_0004.o sceSsl_0005.o sceSsl_0006.o sceSsl_0007.o sceSsl_0008.o sceSsl_0009.o sceSsl_0010.o sceSsl_0011.o
#ifdef F_sceSsl_0000
IMPORT_START "sceSsl",0x00090011
#endif
#ifdef F_sceSsl_0001
IMPORT_FUNC "sceSsl",0x058D21C0,sceSslGetNameEntryCount
#endif
#ifdef F_sceSsl_0002
IMPORT_FUNC "sceSsl",0x0EB43B06,sceSslGetUsedMemoryCurrent
#endif
#ifdef F_sceSsl_0003
IMPORT_FUNC "sceSsl",0x17A10DCC,sceSslGetNotBefore
#endif
#ifdef F_sceSsl_0004
IMPORT_FUNC "sceSsl",0x191CDEFF,sceSslEnd
#endif
#ifdef F_sceSsl_0005
IMPORT_FUNC "sceSsl",0x1B7C8191,sceSslGetIssuerName
#endif
#ifdef F_sceSsl_0006
IMPORT_FUNC "sceSsl",0x3DD5E023,sceSslGetSubjectName
#endif
#ifdef F_sceSsl_0007
IMPORT_FUNC "sceSsl",0x5BFB6B61,sceSslGetNotAfter
#endif
#ifdef F_sceSsl_0008
IMPORT_FUNC "sceSsl",0x957ECBE2,sceSslInit
#endif
#ifdef F_sceSsl_0009
IMPORT_FUNC "sceSsl",0xB99EDE6A,sceSslGetUsedMemoryMax
#endif
#ifdef F_sceSsl_0010
IMPORT_FUNC "sceSsl",0xCC0919B0,sceSslGetSerialNumber
#endif
#ifdef F_sceSsl_0011
IMPORT_FUNC "sceSsl",0xD6D097B4,sceSslGetNameEntryInfo
#endif