Go to the source code of this file.
Data Structures | |
struct | Machine |
The Machine is a simple place holder for the hostname and the ip address of an internet host. More... | |
Functions | |
void | create_this_machine (char *hostname=0, unsigned int ip=0) |
Creates a Machine Object with the hostname and IP address. | |
Machine * | this_machine () |
Returns the Machine object created by create_this_machine(). |
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Part of the utils library which contains classes that use multiple components of the IO-Core to implement some useful functionality. The classes also serve as good examples of how to use the IO-Core.
Definition in file I_Machine.h.
void create_this_machine | ( | char * | hostname = 0 , |
|
unsigned int | ip = 0 | |||
) |
Creates a Machine Object with the hostname and IP address.
If no hostname or IP address is given, the hostname defaults to the name of the current processor.
Machine* this_machine | ( | ) |
Returns the Machine object created by create_this_machine().