Merge branch 'feature/consistency' into develop

This commit is contained in:
Jason Watkins
2015-04-21 15:58:44 -07:00
51 changed files with 1812 additions and 2172 deletions

View File

@@ -52,20 +52,16 @@ namespace XPC
/// Sends data to the specified remote endpoint.
///
/// \param data The data to be sent.
/// \param len The number of bytes to send.
/// \param remoteHost The hostname of the destination client.
/// \param remotePort The port of the destination client.
void SendTo(unsigned char* buffer, std::size_t len, std::string remoteHost, unsigned short remotePort);
/// \param data The data to be sent.
/// \param len The number of bytes to send.
/// \param remote The destination socket.
void SendTo(std::uint8_t* buffer, std::size_t len, sockaddr* remote);
/// Sends data to the specified remote endpoint.
/// Gets a string containing the IP address and port contained in the given sockaddr.
///
/// \param data The data to be sent.
/// \param len The number of bytes to send.
/// \param remoteHost The hostname of the destination client.
/// \param remotePort The port of the destination client.
void SendTo(unsigned char* buffer, std::size_t len, unsigned long remoteIP, unsigned short remotePort);
/// \param addr The socket address to parse.
/// \returns A string representation of the socket address.
static std::string GetHost(sockaddr* addr);
private:
#ifdef _WIN32
SOCKET sock;