소스 검색

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

adeniz_1
Alban Deniz 4 년 전
부모
커밋
c6381d51ae
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      networking.hpp
  2. 1
    1
      networking.inline.hpp

+ 1
- 1
networking.hpp 파일 보기

@@ -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 파일 보기

@@ -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.
}


Loading…
취소
저장