PAlib: PA_Wifi.h Source File

Main Page | Modules | File List | Globals | Search for

# PA_Wifi.h

    00001 #include <dswifi9.h>
    00002 #include <sys/socket.h>
    00003 #include <netinet/in.h>
    00004 #include <netdb.h>
    00005
    00006 #define              VCOUNT        (*((u16 volatile *) 0x04000006))
    00007
    00008 #define IPADDR(d,c,b,a) (unsigned long)(((( a )&0xff)<<24)|((( b )&0xff)<<16)|((( c )&0xff)<<8 )|((( d )&0xff)))
    00009
    00010 #define PA_NORMAL_TCP 1
    00011 #define PA_NONBLOCKING_TCP 2
    00012
    00013 extern void * sgIP_malloc(int size);
    00014 extern void sgIP_free(void * ptr);
    00015 extern void sgIP_dbgprint(char * txt, ...);
    00016 extern void Timer_50ms(void);
    00017 extern void arm9_synctoarm7();
    00018 extern void arm9_fifo();
    00019 extern void PA_InitWifi();
    00020 extern bool PA_ConnectWifiWFC();
    00021 unsigned long PA_chartoip(char *message);
    00022 int PA_InitSocket(int *socket,char *host,int port,int mode);
    00023 int PA_InitServer(int *sock,int port,int mode, int num_connect);
    00024 int PA_GetHTTP(char *buffer, char *adress);