mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 00:51:28 +00:00
Reduced initial daybreak ping, some work on what needs to be done to support the first major patch (very little), CMakeLists.txt changes
This commit is contained in:
parent
8a73f50601
commit
b50c85d086
@ -250,7 +250,7 @@ EQ::Net::DaybreakConnection::DaybreakConnection(DaybreakConnectionManager *owner
|
|||||||
m_hold_time = Clock::now();
|
m_hold_time = Clock::now();
|
||||||
m_buffered_packets_length = 0;
|
m_buffered_packets_length = 0;
|
||||||
m_resend_delay = m_owner->m_options.resend_delay_ms;
|
m_resend_delay = m_owner->m_options.resend_delay_ms;
|
||||||
m_rolling_ping = 1000;
|
m_rolling_ping = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
//new connection made as client
|
//new connection made as client
|
||||||
@ -269,7 +269,7 @@ EQ::Net::DaybreakConnection::DaybreakConnection(DaybreakConnectionManager *owner
|
|||||||
m_hold_time = Clock::now();
|
m_hold_time = Clock::now();
|
||||||
m_buffered_packets_length = 0;
|
m_buffered_packets_length = 0;
|
||||||
m_resend_delay = m_owner->m_options.resend_delay_ms;
|
m_resend_delay = m_owner->m_options.resend_delay_ms;
|
||||||
m_rolling_ping = 1000;
|
m_rolling_ping = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
EQ::Net::DaybreakConnection::~DaybreakConnection()
|
EQ::Net::DaybreakConnection::~DaybreakConnection()
|
||||||
|
|||||||
@ -26,7 +26,7 @@ namespace EQ
|
|||||||
class BasePatch
|
class BasePatch
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::function<void(const EQ::Net::Packet*, EmuOpcode&, EQ::Net::WritablePacket&)> DecodeStructFunction;
|
typedef std::function<void(const EQ::Net::Packet*, EmuOpcode, EQ::Net::WritablePacket&)> DecodeStructFunction;
|
||||||
typedef std::function<void(std::shared_ptr<EQ::Net::DaybreakConnection>, EmuOpcode, const EQ::Net::Packet*)> EncodeStructFunction;
|
typedef std::function<void(std::shared_ptr<EQ::Net::DaybreakConnection>, EmuOpcode, const EQ::Net::Packet*)> EncodeStructFunction;
|
||||||
|
|
||||||
BasePatch() { }
|
BasePatch() { }
|
||||||
|
|||||||
0
common/patch/rof2.cpp
Normal file
0
common/patch/rof2.cpp
Normal file
0
common/patch/rof2.h
Normal file
0
common/patch/rof2.h
Normal file
0
common/patch/rof2_structs.h
Normal file
0
common/patch/rof2_structs.h
Normal file
5036
common/patch/rof_structs.h
Normal file
5036
common/patch/rof_structs.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8.12)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
# Determine if fmt is built as a subproject (using add_subdirectory)
|
# Determine if fmt is built as a subproject (using add_subdirectory)
|
||||||
# or if it is the master project.
|
# or if it is the master project.
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 2.8.5)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
project(libuv)
|
project(libuv)
|
||||||
|
|
||||||
set(libuv_sources
|
set(libuv_sources
|
||||||
|
|||||||
@ -1,133 +0,0 @@
|
|||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
|
||||||
|
|
||||||
SET(libuv_sources
|
|
||||||
src/fs-poll.c
|
|
||||||
src/inet.c
|
|
||||||
src/threadpool.c
|
|
||||||
src/uv-common.c
|
|
||||||
src/version.c
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(libuv_headers
|
|
||||||
include/uv.h
|
|
||||||
include/tree.h
|
|
||||||
include/uv-errno.h
|
|
||||||
include/uv-threadpool.h
|
|
||||||
include/uv-version.h
|
|
||||||
src/heap-inl.h
|
|
||||||
src/queue.h
|
|
||||||
src/uv-common.h
|
|
||||||
)
|
|
||||||
|
|
||||||
IF(NOT WIN32)
|
|
||||||
ADD_DEFINITIONS(-D_LARGEFILE_SOURCE)
|
|
||||||
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
|
|
||||||
|
|
||||||
SET(libuv_sources ${libuv_sources}
|
|
||||||
src/unix/async.c
|
|
||||||
src/unix/core.c
|
|
||||||
src/unix/dl.c
|
|
||||||
src/unix/fs.c
|
|
||||||
src/unix/getaddrinfo.c
|
|
||||||
src/unix/getnameinfo.c
|
|
||||||
src/unix/loop.c
|
|
||||||
src/unix/loop-watcher.c
|
|
||||||
src/unix/pipe.c
|
|
||||||
src/unix/poll.c
|
|
||||||
src/unix/process.c
|
|
||||||
src/unix/signal.c
|
|
||||||
src/unix/stream.c
|
|
||||||
src/unix/tcp.c
|
|
||||||
src/unix/thread.c
|
|
||||||
src/unix/timer.c
|
|
||||||
src/unix/tty.c
|
|
||||||
src/unix/udp.c
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(libuv_headers ${libuv_headers}
|
|
||||||
include/uv-unix.h
|
|
||||||
include/uv-linux.h
|
|
||||||
include/uv-sunos.h
|
|
||||||
include/uv-darwin.h
|
|
||||||
include/uv-bsd.h
|
|
||||||
include/uv-aix.h
|
|
||||||
src/unix/atomic-ops.h
|
|
||||||
src/unix/internal.h
|
|
||||||
src/unix/spinlock.h
|
|
||||||
)
|
|
||||||
|
|
||||||
IF(CMAKE_SYSTEM_NAME STREQUAL Linux)
|
|
||||||
ADD_DEFINITIONS(-D_POSIX_C_SOURCE=200112)
|
|
||||||
ADD_DEFINITIONS(-D_GNU_SOURCE)
|
|
||||||
|
|
||||||
SET(libuv_sources ${libuv_sources}
|
|
||||||
src/unix/proctitle.c
|
|
||||||
src/unix/linux-core.c
|
|
||||||
src/unix/linux-inotify.c
|
|
||||||
src/unix/linux-syscalls.c
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(libuv_headers ${libuv_headers}
|
|
||||||
src/unix/linux-syscalls.h
|
|
||||||
)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
ADD_DEFINITIONS(-D_DARWIN_USE_64_BIT_INODE=1)
|
|
||||||
ADD_DEFINITIONS(-D_DARWIN_UNLIMITED_SELECT=1)
|
|
||||||
|
|
||||||
SET(libuv_sources ${libuv_sources}
|
|
||||||
src/unix/proctitle.c
|
|
||||||
src/unix/darwin.c
|
|
||||||
src/unix/fsevents.c
|
|
||||||
src/unix/darwin-proctitle.c
|
|
||||||
src/unix/pthread-barrier.c
|
|
||||||
src/unix/kqueue.c
|
|
||||||
)
|
|
||||||
ENDIF()
|
|
||||||
ELSE()
|
|
||||||
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0600)
|
|
||||||
ADD_DEFINITIONS(-D_GNU_SOURCE)
|
|
||||||
|
|
||||||
SET(libuv_sources ${libuv_sources}
|
|
||||||
src/win/async.c
|
|
||||||
src/win/core.c
|
|
||||||
src/win/dl.c
|
|
||||||
src/win/error.c
|
|
||||||
src/win/fs.c
|
|
||||||
src/win/fs-event.c
|
|
||||||
src/win/getaddrinfo.c
|
|
||||||
src/win/getnameinfo.c
|
|
||||||
src/win/handle.c
|
|
||||||
src/win/loop-watcher.c
|
|
||||||
src/win/pipe.c
|
|
||||||
src/win/thread.c
|
|
||||||
src/win/poll.c
|
|
||||||
src/win/process.c
|
|
||||||
src/win/process-stdio.c
|
|
||||||
src/win/req.c
|
|
||||||
src/win/signal.c
|
|
||||||
src/win/snprintf.c
|
|
||||||
src/win/stream.c
|
|
||||||
src/win/tcp.c
|
|
||||||
src/win/tty.c
|
|
||||||
src/win/timer.c
|
|
||||||
src/win/udp.c
|
|
||||||
src/win/util.c
|
|
||||||
src/win/winapi.c
|
|
||||||
src/win/winsock.c
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(libuv_headers ${libuv_headers}
|
|
||||||
include/uv-win.h
|
|
||||||
src/win/atomicops-inl.h
|
|
||||||
src/win/handle-inl.h
|
|
||||||
src/win/internal.h
|
|
||||||
src/win/req-inl.h
|
|
||||||
src/win/stream-inl.h
|
|
||||||
src/win/winapi.h
|
|
||||||
src/win/winsock.h
|
|
||||||
)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ADD_LIBRARY(libuv ${libuv_sources} ${libuv_headers})
|
|
||||||
Loading…
x
Reference in New Issue
Block a user