aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
ModeNameSize
-rw-r--r--CMakeLists.txt597logplain
-rw-r--r--s_async.cpp7736logplain
-rw-r--r--s_async.h4048logplain
-rw-r--r--s_base.cpp8594logplain
-rw-r--r--s_base.h3401logplain
-rw-r--r--s_entity.cpp7823logplain
-rw-r--r--s_entity.h1542logplain
-rw-r--r--s_env.cpp4388logplain
-rw-r--r--s_env.h1318logplain
-rw-r--r--s_internal.h2283logplain
-rw-r--r--s_inventory.cpp7745logplain
-rw-r--r--s_inventory.h2342logplain
-rw-r--r--s_item.cpp6852logplain
-rw-r--r--s_item.h1879logplain
-rw-r--r--s_mainmenu.cpp2665logplain
-rw-r--r--s_mainmenu.h1454logplain
-rw-r--r--s_node.cpp7060logplain
-rw-r--r--s_node.h1955logplain
-rw-r--r--s_nodemeta.cpp8155logplain
-rw-r--r--s_nodemeta.h2220logplain
-rw-r--r--s_player.cpp5435logplain
-rw-r--r--s_player.h1815logplain
-rw-r--r--s_security.cpp13836logplain
-rw-r--r--s_security.h2236logplain
-rw-r--r--s_server.cpp4532logplain
-rw-r--r--s_server.h1559logplain
431'>431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "socket.h"

#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sstream>
#include <iomanip>
#include "util/string.h"
#include "util/numeric.h"
#include "constants.h"
#include "debug.h"
#include "settings.h"
#include "log.h"
#include "main.h" // for g_settings

#ifdef _WIN32
	#ifndef WIN32_LEAN_AND_MEAN
		#define WIN32_LEAN_AND_MEAN
	#endif
	// Without this some of the network functions are not found on mingw
	#ifndef _WIN32_WINNT