KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
echo.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <kos/init.h>
#include <kos/net.h>
#include <kos/thread.h>
#include <kos/dbgio.h>
#include <dc/maple/controller.h>

Macros

#define DATA_SIZE   1280
 
#define ECHO_PORT   1337
 
#define ERR_EXIT()
 

Functions

 KOS_INIT_FLAGS (INIT_DEFAULT|INIT_NET)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ DATA_SIZE

#define DATA_SIZE   1280

Referenced by main().

◆ ECHO_PORT

#define ECHO_PORT   1337

Referenced by main().

◆ ERR_EXIT

#define ERR_EXIT ( )
Value:
{ thd_sleep(2000); exit(EXIT_FAILURE); }
Do not use use thd_sleep() instead") static inline void timer_spin_sleep(unsigned int ms)
Definition timer.h:202

Referenced by main().

Function Documentation

◆ KOS_INIT_FLAGS()

KOS_INIT_FLAGS ( INIT_DEFAULT| INIT_NET)

◆ main()