diff options
Diffstat (limited to '')
-rw-r--r-- | src/udpsocket.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/udpsocket.cpp b/src/udpsocket.cpp index b577302..055d584 100644 --- a/src/udpsocket.cpp +++ b/src/udpsocket.cpp | |||
@@ -83,15 +83,11 @@ Bu::UdpSocket::~UdpSocket() | |||
83 | 83 | ||
84 | Bu::String Bu::UdpSocket::addrToStr( const addr &a ) | 84 | Bu::String Bu::UdpSocket::addrToStr( const addr &a ) |
85 | { | 85 | { |
86 | Bu::String sOut; | 86 | return Bu::String("%1.%2.%3.%4"). |
87 | sOut.format("%d.%d.%d.%d", | 87 | arg( (a&0xff) ). |
88 | (a&0xff), | 88 | arg( (a&0xff00)>>8 ). |
89 | (a&0xff00)>>8, | 89 | arg( (a&0xff0000)>>16 ). |
90 | (a&0xff0000)>>16, | 90 | arg( (a&0xff000000)>>24 ); |
91 | (a&0xff000000)>>24 | ||
92 | ); | ||
93 | |||
94 | return sOut; | ||
95 | } | 91 | } |
96 | 92 | ||
97 | void Bu::UdpSocket::close() | 93 | void Bu::UdpSocket::close() |