Parcourir la source

Changed parameter for SocketAddress:setAddress(char const *).

adeniz_1
Alban Deniz il y a 4 ans
Parent
révision
c6381d51ae
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1
    1
      networking.hpp
  2. 1
    1
      networking.inline.hpp

+ 1
- 1
networking.hpp Voir le fichier

@@ -235,7 +235,7 @@ class SocketAddress {
socklen_t getAddressSize(); // How big is that structure anyway?

void setAddress(unsigned long ipAddress); // Set the IP address from an unsigned int
void setAddress(char* ipString); // Set the IP address from a cstring
void setAddress(char const * ipString); // Set the IP address from a cstring
unsigned long getAddress(); // Get the IP address as an unsigned int
const char* getAddress(char* str); // Get the IP address into a cstring
void getAddress(int& a0, int& a1, int& a2, int& a3); // Get the IP address into 4 ints

+ 1
- 1
networking.inline.hpp Voir le fichier

@@ -181,7 +181,7 @@ inline void SocketAddress::setAddress(unsigned long ipAddress) {
Address.sin_addr.s_addr = htonl(ipAddress); // Convert to network order and assign.
}

inline void SocketAddress::setAddress(char* ipString) { // Set the IP address from a cstring
inline void SocketAddress::setAddress(char const * ipString) { // Set the IP address from a cstring
Address.sin_addr.s_addr = inet_addr(ipString); // Convert to number and assign.
}


Chargement…
Annuler
Enregistrer