Changeset 8 in Main


Ignore:
Timestamp:
Sep 13, 2024, 8:18:23 PM (2 months ago)
Author:
Nishi
Message:

can listen now

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Platform/win64.mk

    r6 r8  
    55CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -I $(PWD)/openssl/include
    66LDFLAGS = -L $(PWD)/openssl/lib
    7 LIBS =
     7LIBS = -lws2_32
    88EXEC = .exe
  • trunk/Server/Makefile

    r6 r8  
    66.SUFFIXES: .c .o
    77
    8 OBJS = version.o main.o config.o
     8OBJS = version.o main.o config.o server.o
    99
    1010all: tewi$(EXEC)
  • trunk/Server/main.c

    r6 r8  
    1010
    1111#include "tw_config.h"
     12#include "tw_server.h"
    1213#include "tw_version.h"
    1314
     
    4445                return 1;
    4546        }
     47        if(tw_server_init() != 0) {
     48                fprintf(stderr, "Could not initialize the server\n");
     49                return 1;
     50        }
    4651        cm_log("Daemon", "Ready");
    4752}
Note: See TracChangeset for help on using the changeset viewer.