|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>#include <kernel.h>#include <sifrpc.h>#include <loadfile.h>#include <stdio.h>#include <string.h>#include "ps2ips.h"
Include dependency graph for echo.c:Go to the source code of this file.
Functions | |
| void | serverThread () |
| int | main (int argc, char *argv[]) |
| int | HandleClient (int cs) |
Variables | |
| char | buffer [100] |
| int HandleClient | ( | int | cs | ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 24 of file echo.c.
References NULL, ps2ip_init(), serverThread(), SifInitRpc(), SifLoadModule(), and SleepThread().
| void serverThread | ( | ) |
Definition at line 59 of file echo.c.
References accept, AF_INET, bind, disconnect(), FD_CLR, FD_ISSET, FD_SET, FD_SETSIZE, FD_ZERO, HandleClient(), htonl, htons, INADDR_ANY, IPPROTO_TCP, listen, NULL, in_addr::s_addr, select, sockaddr_in::sin_addr, sockaddr_in::sin_family, sockaddr_in::sin_port, SleepThread(), SOCK_STREAM, and socket.
Referenced by main().
| char buffer[100] |
Definition at line 39 of file echo.c.
Referenced by HandleClient().