Cleaning some typos
This commit is contained in:
parent
f0743ec795
commit
10827abb56
|
@ -77,7 +77,6 @@ struct {
|
||||||
//
|
//
|
||||||
// Scheduler
|
// Scheduler
|
||||||
//
|
//
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
Space_t *globalDrawingSpace;
|
Space_t *globalDrawingSpace;
|
||||||
IntArray_t *transitionsTree;
|
IntArray_t *transitionsTree;
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include "../include/base.h"
|
#include "../include/base.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void *loadServer(void*);
|
void *launchScheduler(void*);
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
|
@ -33,5 +33,5 @@ struct {
|
||||||
|
|
||||||
Command_t cmdList[] =
|
Command_t cmdList[] =
|
||||||
{
|
{
|
||||||
{"launch scheduler", loadServer, "Launches a scheduler instance"},
|
{"launch scheduler", launchScheduler, "Launches a scheduler instance"},
|
||||||
};
|
};
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void *loadServer(void *args)
|
void *launchScheduler(void *args)
|
||||||
{
|
{
|
||||||
Scheduler_t *scheduler0;
|
Scheduler_t *scheduler0;
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ static inline int bindSocket(int newSocket)
|
||||||
static void *serverMain(void *server)
|
static void *serverMain(void *server)
|
||||||
{
|
{
|
||||||
Server_t *args;
|
Server_t *args;
|
||||||
int socketDescriptor, effectiveSocket, clientLen;
|
int socketDescriptor, effectiveSocket, clientRequestLength;
|
||||||
struct sockaddr_in client;
|
struct sockaddr_in client;
|
||||||
char clientRequest[255]= {0};
|
char clientRequest[255]= {0};
|
||||||
char serverAnswer[255] = {0};
|
char serverAnswer[255] = {0};
|
||||||
|
@ -108,10 +108,10 @@ static void *serverMain(void *server)
|
||||||
//Accept and incoming connection
|
//Accept and incoming connection
|
||||||
while(!args->pleaseStop) {
|
while(!args->pleaseStop) {
|
||||||
printLog("Waiting for incoming connections...\n");
|
printLog("Waiting for incoming connections...\n");
|
||||||
clientLen = sizeof(struct sockaddr_in);
|
clientRequestLength = sizeof(struct sockaddr_in);
|
||||||
|
|
||||||
//accept connection from an incoming client
|
//accept connection from an incoming client
|
||||||
effectiveSocket = accept(socketDescriptor,(struct sockaddr *)&client,(socklen_t*)&clientLen);
|
effectiveSocket = accept(socketDescriptor,(struct sockaddr *)&client,(socklen_t*)&clientRequestLength);
|
||||||
|
|
||||||
if (effectiveSocket < 0) {
|
if (effectiveSocket < 0) {
|
||||||
printLog("Acceptation failed\n");
|
printLog("Acceptation failed\n");
|
||||||
|
|
Loading…
Reference in New Issue