aboutsummaryrefslogtreecommitdiff
path: root/src/tcpsocket.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-01-20 02:14:08 +0000
committerMike Buland <eichlan@xagasoft.com>2011-01-20 02:14:08 +0000
commitf5aca1a1b402bd7ebc944dc6e6fe65828d863365 (patch)
tree4a0fdd8e166d5c4b03543279d332b9a858ef62df /src/tcpsocket.h
parent10c557562e1d67c55314c212371ea9cb7f802863 (diff)
downloadlibbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.gz
libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.bz2
libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.xz
libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.zip
Bu::FString is now String, and there's a shell script to fix any other programs
that were using fstring, I hope.
Diffstat (limited to 'src/tcpsocket.h')
-rw-r--r--src/tcpsocket.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tcpsocket.h b/src/tcpsocket.h
index 8543ad0..0941c65 100644
--- a/src/tcpsocket.h
+++ b/src/tcpsocket.h
@@ -12,7 +12,7 @@
12 12
13#include "bu/config.h" 13#include "bu/config.h"
14#include "bu/stream.h" 14#include "bu/stream.h"
15#include "bu/fstring.h" 15#include "bu/string.h"
16#include "bu/exceptionbase.h" 16#include "bu/exceptionbase.h"
17 17
18namespace Bu 18namespace Bu
@@ -61,7 +61,7 @@ namespace Bu
61 { 61 {
62 public: 62 public:
63 TcpSocket( int nTcpSocket ); 63 TcpSocket( int nTcpSocket );
64 TcpSocket( const FString &sAddr, int nPort, int nTimeout=30, 64 TcpSocket( const String &sAddr, int nPort, int nTimeout=30,
65 bool bBlocking=true ); 65 bool bBlocking=true );
66 virtual ~TcpSocket(); 66 virtual ~TcpSocket();
67 67
@@ -96,12 +96,12 @@ namespace Bu
96 96
97 virtual void setSize( size iSize ); 97 virtual void setSize( size iSize );
98 98
99 Bu::FString getAddress() const; 99 Bu::String getAddress() const;
100 operator int() const; 100 operator int() const;
101 101
102 virtual size getSize() const; 102 virtual size getSize() const;
103 virtual size getBlockSize() const; 103 virtual size getBlockSize() const;
104 virtual Bu::FString getLocation() const; 104 virtual Bu::String getLocation() const;
105 105
106 private: 106 private:
107 void setAddress(); 107 void setAddress();
@@ -113,8 +113,8 @@ namespace Bu
113#endif 113#endif
114 bool bActive; 114 bool bActive;
115 bool bBlocking; 115 bool bBlocking;
116 FString sReadBuf; 116 String sReadBuf;
117 FString sAddress; 117 String sAddress;
118 }; 118 };
119} 119}
120 120