Changeset 20993
- Timestamp:
- 01/12/08 06:40:56 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vapor/vpr/IO/Socket/SocketDatagram_t.h
r20974 r20993 128 128 * Receives a message from some source. The source's address is writen 129 129 * into the by-reference parameter \p from. 130 * @throws vpr::IOException if the operation failed. 130 * 131 * @throw vpr::IOException Thrown if the operation failed. 131 132 */ 132 133 vpr::Uint32 recvfrom(void* msg, const vpr::Uint32 len, … … 140 141 * Receives a message from some source. The source's address is writen 141 142 * into the by-reference parameter \p from. 142 * @throws vpr::IOException if the operation failed. 143 * 144 * @throw vpr::IOException Thrown if the operation failed. 143 145 */ 144 146 vpr::Uint32 recvfrom(std::string& msg, const vpr::Uint32 len, … … 155 157 * Receives a message from some source. The source's address is writen 156 158 * into the by-reference parameter \p from. 157 * @throws vpr::IOException if the operation failed. 159 * 160 * @throw vpr::IOException Thrown if the operation failed. 158 161 */ 159 162 vpr::Uint32 recvfrom(std::vector<vpr::Uint8>& msg, … … 175 178 /** 176 179 * Sends a message to the designated recipient. 177 * @throws vpr::IOException if the operation failed. 180 * 181 * @throw vpr::IOException Thrown if the operation failed. 178 182 */ 179 183 vpr::Uint32 sendto(const void* msg, const vpr::Uint32 len, … … 186 190 /** 187 191 * Sends a message to the designated recipient. 188 * @throws vpr::IOException if the operation failed. 192 * 193 * @throw vpr::IOException Thrown if the operation failed. 189 194 */ 190 195 vpr::Uint32 sendto(const std::string& msg, const vpr::Uint32 len, … … 198 203 /** 199 204 * Sends a message to the designated recipient. 200 * @throws vpr::IOException if the operation failed. 205 * 206 * @throw vpr::IOException Thrown if the operation failed. 201 207 */ 202 208 vpr::Uint32 sendto(const std::vector<vpr::Uint8>& msg, … … 210 216 protected: 211 217 /** 212 * @throws vpr::SocketException. 218 * @throw vpr::SocketException 219 * Thrown if querying the indiccated option on this socket fails. 213 220 */ 214 221 virtual void getOption(const vpr::SocketOptions::Types option, … … 220 227 221 228 /** 222 * @throws vpr::SocketException. 229 * @throw vpr::SocketException 230 * Thrown if setting the indicated option on this socket fails. 223 231 */ 224 232 virtual void setOption(const vpr::SocketOptions::Types option, juggler/trunk/modules/vapor/vpr/IO/Socket/SocketStream_t.h
r20974 r20993 132 132 * @param backlog The maximum length of th queue of pending connections. 133 133 * 134 * @throw s vpr::SocketException if the socket could not be put into135 * a listening state.134 * @throw vpr::SocketException 135 * Thrown if the socket could not be put into a listening state. 136 136 */ 137 137 void listen(const int backlog = 5) … … 153 153 * return. 154 154 * 155 * @throws vpr::WouldBlockException if this is a non-blocking socket, 156 * and there are no waiting connection requests. 157 * @throws vpr::TimeoutException if no connection requests arrived within 158 * the given timeout period. 159 * @throws vpr::SocketException if the connection was not accepted because 160 * of an error. 155 * @throw vpr::WouldBlockException 156 * Thrown if this is a non-blocking socket, and there are no 157 * waiting connection requests. 158 * @throw vpr::TimeoutException 159 * Thrown if no connection requests arrived within the given 160 * timeout period. 161 * @throw vpr::SocketException 162 * Thrown if the connection was not accepted because of an error. 161 163 * 162 164 * @see open, bind, listen … … 182 184 * @param backlog The maximum length of the pending connection queue. 183 185 * 184 * @throws vpr::WouldBlockException if this is a non-blocking socket, 185 * and there are no waiting connection requests. 186 * @throws vpr::TimeoutException if no connection requests arrived within 187 * the given timeout period. 188 * @throws vpr::SocketException if the connection was not accepted because 189 * of an error. 186 * @throw vpr::WouldBlockException 187 * Thrown if this is a non-blocking socket, and there are no 188 * waiting connection requests. 189 * @throw vpr::TimeoutException 190 * Thrown if no connection requests arrived within the given 191 * timeout period. 192 * @throw vpr::SocketException 193 * Thrown if the connection was not accepted because of an error. 190 194 */ 191 195 void openServer(const bool reuseAddr = true, … … 221 225 222 226 /** 223 * @THROWS vpr::SocketException. 227 * @throw vpr::SocketException 228 * Thrown if querying the indiccated option on this socket fails. 224 229 */ 225 230 virtual void getOption(const vpr::SocketOptions::Types option, … … 231 236 232 237 /** 233 * @THROWS vpr::SocketException. 238 * @throw vpr::SocketException 239 * Thrown if setting the indicated option on this socket fails. 234 240 */ 235 241 virtual void setOption(const vpr::SocketOptions::Types option, … … 238 244 mSocketStreamImpl->setOption(option, data); 239 245 } 246 247 /** @name TCP Corking Interface Implementation */ 248 //@{ 249 void setCorkAllocStrategy(const NoPushStrategy& s) 250 { 251 mSocketStreamImpl->setCorkAllocStrategy(s); 252 } 253 254 /** 255 * Calls through to the cork() method of the internal stream socket 256 * implementation. 257 * 258 * @since 2.1.9 259 * 260 * @see vpr::SocketStreamImplBSD::cork() 261 * @see vpr::SocketStreamImplNSPR::cork() 262 */ 263 virtual void cork() 264 { 265 mSocketStreamImpl->cork(); 266 } 267 268 /** 269 * Calls through to the uncork() method of the internal stream socket 270 * implementation. 271 * 272 * @since 2.1.9 273 * 274 * @see vpr::SocketStreamImplBSD::uncork() 275 * @see vpr::SocketStreamImplNSPR::uncork() 276 */ 277 virtual void uncork() 278 { 279 mSocketStreamImpl->uncork(); 280 } 281 //@} 240 282 241 283 // Put in back door for simulator
