Changeset 9 in libcf++ for trunk/src/network.cpp
- Timestamp:
- 06/06/15 20:40:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/network.cpp
r8 r9 281 281 } 282 282 283 cf::void_t cf::network::tcp::listen(const cf::uint16_t port, 284 const cf::int32_t backlog) const 283 cf::void_t cf::network::tcp::bind(const cf::uint16_t port) const 285 284 throw (cf::exception) 286 285 { … … 309 308 if (result < 0) 310 309 THROW_EXCEPTION("cannot bind to " << port); 311 312 result = ::listen(mSocket, backlog); 310 } 311 312 cf::void_t cf::network::tcp::listen(const cf::int32_t backlog) const 313 throw (cf::exception) 314 { 315 cf::int32_t result = ::listen(mSocket, backlog); 313 316 if (result < 0) 314 317 THROW_EXCEPTION("cannot listen");
Note:
See TracChangeset
for help on using the changeset viewer.