summaryrefslogtreecommitdiff
path: root/indra/llmessage/machine.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-11-28 20:08:09 -0800
committerJames Cook <james@lindenlab.com>2009-11-28 20:08:09 -0800
commit8ff96a3515daa5c05d1c519f920c12b7aa78c4da (patch)
treeba0c9ffa682bd147f08b0419953c037c2864f35c /indra/llmessage/machine.h
parent3838a7dfa5340019f29c11f1f690400182c2df8d (diff)
Migrated LLUUIDs and some float constants out of headers into .cpp files
Moved some functions with llinfos into .cpp files Linker optimizations, all
Diffstat (limited to 'indra/llmessage/machine.h')
-rw-r--r--indra/llmessage/machine.h28
1 files changed, 2 insertions, 26 deletions
diff --git a/indra/llmessage/machine.h b/indra/llmessage/machine.h
index 63a038159e..6da8e5e04e 100644
--- a/indra/llmessage/machine.h
+++ b/indra/llmessage/machine.h
@@ -33,7 +33,6 @@
#ifndef LL_MACHINE_H
#define LL_MACHINE_H
-#include "llerror.h"
#include "net.h"
#include "llhost.h"
@@ -79,31 +78,8 @@ public:
void setMachineIP(U32 ip) { mHost.setAddress(ip); }
void setMachineHost(const LLHost &host) { mHost = host; }
- void setMachinePort(S32 port)
- {
- if (port < 0)
- {
- llinfos << "Can't assign a negative number to LLMachine::mPort" << llendl;
- mHost.setPort(0);
- }
- else
- {
- mHost.setPort(port);
- }
- }
-
- void setControlPort( S32 port )
- {
- if (port < 0)
- {
- llinfos << "Can't assign a negative number to LLMachine::mControlPort" << llendl;
- mControlPort = 0;
- }
- else
- {
- mControlPort = port;
- }
- }
+ void setMachinePort(S32 port);
+ void setControlPort( S32 port );
// member variables