Namespaces | Defines | Functions

utils.h File Reference

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. More...

#include <string>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdint.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  atscppapi
namespace  atscppapi::utils

Defines

#define ATSCPPAPI_UNUSED

Functions

std::string atscppapi::utils::getIpString (const sockaddr *)
 Returns a pretty printed string of a sockaddr *.
uint16_t atscppapi::utils::getPort (const sockaddr *)
 Returns just the port portion of the sockaddr *.
std::string atscppapi::utils::getIpPortString (const sockaddr *)
 Returns a pretty printed string of a sockaddr * including port.

Detailed Description

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.

Contains utility functions available to users of the api.

Definition in file utils.h.


Define Documentation

#define ATSCPPAPI_UNUSED

Definition at line 38 of file utils.h.