diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llteleportflags.h | 1 | ||||
-rw-r--r-- | linden/indra/llmessage/machine.h | 4 | ||||
-rw-r--r-- | linden/indra/llmessage/net.cpp | 5 |
3 files changed, 6 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llteleportflags.h b/linden/indra/llmessage/llteleportflags.h index 25aac14..60916bd 100644 --- a/linden/indra/llmessage/llteleportflags.h +++ b/linden/indra/llmessage/llteleportflags.h | |||
@@ -44,6 +44,7 @@ const U32 TELEPORT_FLAGS_911 = 1 << 10; | |||
44 | const U32 TELEPORT_FLAGS_DISABLE_CANCEL = 1 << 11; // Used for llTeleportAgentHome() | 44 | const U32 TELEPORT_FLAGS_DISABLE_CANCEL = 1 << 11; // Used for llTeleportAgentHome() |
45 | const U32 TELEPORT_FLAGS_VIA_REGION_ID = 1 << 12; | 45 | const U32 TELEPORT_FLAGS_VIA_REGION_ID = 1 << 12; |
46 | const U32 TELEPORT_FLAGS_IS_FLYING = 1 << 13; | 46 | const U32 TELEPORT_FLAGS_IS_FLYING = 1 << 13; |
47 | const U32 TELEPORT_FLAGS_SHOW_RESET_HOME = 1 << 14; | ||
47 | 48 | ||
48 | const U32 TELEPORT_FLAGS_MASK_VIA = TELEPORT_FLAGS_VIA_LURE | 49 | const U32 TELEPORT_FLAGS_MASK_VIA = TELEPORT_FLAGS_VIA_LURE |
49 | | TELEPORT_FLAGS_VIA_LANDMARK | 50 | | TELEPORT_FLAGS_VIA_LANDMARK |
diff --git a/linden/indra/llmessage/machine.h b/linden/indra/llmessage/machine.h index 490ddc5..b28e621 100644 --- a/linden/indra/llmessage/machine.h +++ b/linden/indra/llmessage/machine.h | |||
@@ -62,8 +62,8 @@ public: | |||
62 | 62 | ||
63 | // get functions | 63 | // get functions |
64 | EMachineType getMachineType() const { return mMachineType; } | 64 | EMachineType getMachineType() const { return mMachineType; } |
65 | const U32 getMachineIP() const { return mHost.getAddress(); } | 65 | U32 getMachineIP() const { return mHost.getAddress(); } |
66 | const S32 getMachinePort() const { return mHost.getPort(); } | 66 | S32 getMachinePort() const { return mHost.getPort(); } |
67 | const LLHost &getMachineHost() const { return mHost; } | 67 | const LLHost &getMachineHost() const { return mHost; } |
68 | // The control port is the listen port of the parent process that | 68 | // The control port is the listen port of the parent process that |
69 | // launched this machine. 0 means none or not known. | 69 | // launched this machine. 0 means none or not known. |
diff --git a/linden/indra/llmessage/net.cpp b/linden/indra/llmessage/net.cpp index 1395093..92efd15 100644 --- a/linden/indra/llmessage/net.cpp +++ b/linden/indra/llmessage/net.cpp | |||
@@ -291,8 +291,9 @@ S32 start_net(S32& socket_out, int& nPort) | |||
291 | 291 | ||
292 | void end_net(S32& socket_out) | 292 | void end_net(S32& socket_out) |
293 | { | 293 | { |
294 | if (socket_out < 0) | 294 | if (socket_out >= 0) |
295 | { | 295 | { |
296 | shutdown(socket_out, SD_BOTH); | ||
296 | closesocket(socket_out); | 297 | closesocket(socket_out); |
297 | } | 298 | } |
298 | WSACleanup(); | 299 | WSACleanup(); |
@@ -463,7 +464,7 @@ S32 start_net(S32& socket_out, int& nPort) | |||
463 | 464 | ||
464 | void end_net(S32& socket_out) | 465 | void end_net(S32& socket_out) |
465 | { | 466 | { |
466 | if (socket_out < 0) | 467 | if (socket_out >= 0) |
467 | { | 468 | { |
468 | close(socket_out); | 469 | close(socket_out); |
469 | } | 470 | } |