1
0
Commit Graph

54 Commits

Author SHA1 Message Date
madmaxoft
0fef69e612 Fixed cFile compilation on Linux. 2013-11-25 21:24:41 +01:00
madmaxoft
319d32117d Removed a stale comment. 2013-11-24 14:43:06 +01:00
madmaxoft
1f8399fae5 Fixed socket connection startup. 2013-11-24 14:28:51 +01:00
madmaxoft
94e14e1ace Added cFile:ReadWholeFile() to Lua API. 2013-11-23 20:26:00 +01:00
madmaxoft
63753c5e84 Added cFile:GetFolderContents().
Fix 162.
2013-11-22 20:11:24 +01:00
madmaxoft
99da44095a Fix for NULL arithmetic compiler warning in Linux. 2013-11-13 22:54:01 +01:00
madmaxoft
76d056e5f7 Fixed cFile::CopyFile Linux compilation. 2013-10-09 14:19:14 +02:00
madmaxoft
9fc35514e6 APIDump: Documented the new cFile API functions. 2013-10-09 11:31:38 +02:00
madmaxoft
55999ee118 Moved cMakeDir::MakeDir to cFile::CreateFolder.
And exported to Lua.
2013-10-09 09:57:48 +02:00
madmaxoft
2ff882f239 Added static cFile functions to Lua API. 2013-10-09 09:38:47 +02:00
madmaxoft
4bf596a586 cListenThread: Fixed thread termination. 2013-10-06 16:18:15 +02:00
madmaxoft
c56bc4b01c Fixed Linux threading issues. 2013-09-21 20:44:16 +02:00
madmaxoft
744b3be454 Fixed cFile:IsFolder() and plugin-loading.
This should fix loading plugins on Linux.
2013-09-21 19:45:11 +02:00
madmaxoft
edd7363edd Proper folder / file distinction in plugin loading. 2013-09-18 20:40:09 +02:00
madmaxoft
6ff49ec3a8 Removed TimedWait from cEvent.
Unsupported on MacOS.
2013-09-05 15:22:16 +02:00
madmaxoft
86eb71868b Rewritten cTimer not to use heap allocation. 2013-08-30 10:06:41 +02:00
madmaxoft
ebc076e8b2 Fixed ProtoProxy compilation, added client Kick handling. 2013-08-25 21:57:12 +02:00
madmaxoft
40cb30b6a5 Small Linux fixes. 2013-08-20 19:29:29 +02:00
madmaxoft
53455a10fa Fixed cEvent TimedWait on Linux. 2013-08-19 17:29:08 +02:00
madmaxoft
539ae20466 Fixed timed event wait on Linux.
Was causing an error message and the DeadlockDetect didn't work.
2013-08-19 10:51:18 +02:00
madmaxoft
40e9e5b95b cListenThread correctly closes all sockets.
This partially fixes FS 421.
2013-08-18 12:27:46 +02:00
madmaxoft
259cf9f027 cEvent can now wait for the event with a specified timeout. 2013-08-14 22:27:49 +02:00
madmaxoft
ac9224da91 cIsThread threads get a window identification on Win.
This enables tools such as TaskInfo to report the thread name directly.
2013-08-11 20:22:42 +02:00
madmaxoft
2baa6634ec cIsThread: Added the Stop() method and debugging output in Wait() 2013-08-11 19:40:15 +02:00
madmaxoft
b58ca60815 Added doxyComments for cIsThread. 2013-08-11 18:46:49 +02:00
Alexander Harkness
53e22b1185 Changed everyting to Unix line endings. 2013-07-29 12:13:03 +01:00
madmaxoft@gmail.com
a96ee0abfa cListenThread initializes m_ShouldReuseAddr to false (valgrind error)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1677 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-22 19:55:10 +00:00
madmaxoft@gmail.com
bc421842c6 Added a basic RCON protocol
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1628 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-27 15:14:20 +00:00
madmaxoft@gmail.com
360c579105 Socket: Removed the absurd function returning localhost addr, now using INADDR_LOOPBACK
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1596 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-15 20:24:22 +00:00
madmaxoft@gmail.com
67154217a2 Added base Code::Blocks project (WIP, still doesn't compile) and fixed some source errors with MinGW.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1510 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 14:59:41 +00:00
madmaxoft@gmail.com
7741de1dbf File: Added file rename and deletion functions
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1436 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-01 16:59:36 +00:00
madmaxoft@gmail.com
0e35f2225a ListenThread: Fixed socket-querying, might have crashed some linux versions.
Hopefully this fixes FS #345

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1345 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-01 13:35:42 +00:00
madmaxoft@gmail.com
025ee983d4 ListenThread now reports the protocol used (IPv4 - IPv6) in its error messages
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1322 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-29 18:27:07 +00:00
madmaxoft@gmail.com
a4e6a027a1 Fixed a problem in Linux handling of ListenThread.
A closed socket doesn't seem to wake up a select() call on that socket on Linux. Fixed by waking up by a timeout regularly (semi-busywait).
Fixes FS #334

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1305 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-23 22:02:35 +00:00
madmaxoft@gmail.com
ff403fdbf0 Added water and lava springs.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1269 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 09:52:57 +00:00
madmaxoft@gmail.com
bc8ad9d1b1 Made ListenThread an OSSupport part, as it's generic enough
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1258 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 20:47:29 +00:00
madmaxoft@gmail.com
469d08ec42 IPv6: Windows XP doesn't have the inet_pton() function, resorting to custom-formatting the address
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1257 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 20:46:40 +00:00
madmaxoft
fcdc68fd8e IPv6 support: fixed IP string getting on accept()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1256 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 13:35:19 +00:00
madmaxoft@gmail.com
ea750b9745 Fixed logic in socketthreads connecting
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1255 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 11:50:56 +00:00
madmaxoft@gmail.com
9d2c841843 IPv6 support + removed cTCPLink from Lua API
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1253 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 09:53:29 +00:00
madmaxoft@gmail.com
28d8d8419a Moved client socket accepting into a separate thread object, cListenThread
MCServer can now listen on multiple ports
FS #312

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1252 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-04 21:13:08 +00:00
madmaxoft@gmail.com
eb68b7ce01 Starting an IPv6 support / cSocket rewrite
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1250 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-04 18:40:48 +00:00
madmaxoft@gmail.com
24d3d5dac4 AnvilStats: Added ChunkExtract mode of operation, splitting Anvil files into individual chunks.
Both original zlibbed chunks and re-gzipped chunks are output.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1223 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-25 19:06:37 +00:00
madmaxoft@gmail.com
ed47a8e409 cBlockArea can now be saved as a .schematic file.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1198 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-07 10:09:42 +00:00
madmaxoft@gmail.com
e0535ca6df Added a cGZipFile class for reading GZipped files.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1196 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-07 09:15:55 +00:00
madmaxoft@gmail.com
43e6840719 Merged branch "branches/hooks" into "trunk".
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12 04:46:01 +00:00
madmaxoft@gmail.com
15fe5a1d41 Fixed cCriticalSection's debugging functions
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1072 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-14 22:36:12 +00:00
madmaxoft@gmail.com
8eab4f83b9 SocketThreads fixes for crashes reported in FS #272
http://www.mc-server.org/support/index.php?do=details&task_id=272&project=2

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1061 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-22 14:10:21 +00:00
madmaxoft@gmail.com
635386faad More valgrind fixes
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1044 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15 14:02:17 +00:00
madmaxoft@gmail.com
31a326382a Critical sections aren't heap-allocated in linux anymore.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1012 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-26 15:03:44 +00:00