Changeset 9 in libcf++ for trunk/src/network.cpp


Ignore:
Timestamp:
06/06/15 20:40:20 (9 years ago)
Author:
cheese
Message:

#1 fix binding interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/network.cpp

    r8 r9  
    281281}
    282282
    283 cf::void_t cf::network::tcp::listen(const cf::uint16_t port,
    284                                     const cf::int32_t backlog) const
     283cf::void_t cf::network::tcp::bind(const cf::uint16_t port) const
    285284    throw (cf::exception)
    286285{
     
    309308    if (result < 0)
    310309        THROW_EXCEPTION("cannot bind to " << port);
    311 
    312     result = ::listen(mSocket, backlog);
     310}
     311
     312cf::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);
    313316    if (result < 0)
    314317        THROW_EXCEPTION("cannot listen");
Note: See TracChangeset for help on using the changeset viewer.