Show
Ignore:
Timestamp:
01/06/07 23:31:12 (6 years ago)
Author:
Philipp Kern <phil@…>
Parents:
3e51f8e95a8bf974bbe8260eb166457743115f9d
Children:
4e4b30464aab06db06dfcfd1e51882c9fca8992f
git-committer:
Philipp Kern <phil@0x539.de> / 2007-01-06T22:31:12Z+0000
Message:

[project @ Adjusted buffer_wrapper for net6 API corrections]

Original author: Armin Burgmeier <armin@…>
Date: 2005-04-15 20:00:12+00:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/buffer_wrapper_generic.cpp

    r3e3c8e1 rfefa5bc  
    6565 
    6666        if(condition & (Glib::IO_ERR | Glib::IO_HUP | Glib::IO_NVAL) ) 
    67                 sock.error_event().emit(sock, net6::socket::IOERROR); 
     67                sock.io_event().emit(net6::socket::IOERROR); 
    6868 
    6969        if(condition & (Glib::IO_IN) ) 
    70                 sock.read_event().emit(sock, net6::socket::INCOMING); 
     70                sock.io_event().emit(net6::socket::INCOMING); 
    7171 
    7272        if(condition & (Glib::IO_OUT) ) 
    73                 sock.write_event().emit(sock, net6::socket::OUTGOING); 
     73                sock.io_event().emit(net6::socket::OUTGOING); 
    7474 
    7575        return true; 
     
    9292} 
    9393 
    94 void Gobby::Client::on_client_send(const net6::packet& pack) 
     94void Gobby::Client::on_send_event(const net6::packet& pack) 
    9595{ 
    9696        if(conn.send_queue_size() == 0) 
    9797                m_ioconn.remove_connect(Glib::IO_OUT); 
    98         net6::client::on_client_send(pack); 
     98        net6::client::on_send_event(pack); 
    9999} 
    100100 
     
    159159} 
    160160 
    161 void Gobby::Host::on_join(net6::host::peer& new_peer) 
     161void Gobby::Host::on_connect(net6::host::peer& new_peer) 
    162162{ 
    163163        // Build IOConnection 
     
    174174} 
    175175 
    176 void Gobby::Host::on_client_send(const net6::packet& pack, 
    177                                  net6::host::peer& to) 
     176void Gobby::Host::on_send_event(const net6::packet& pack, 
     177                                net6::host::peer& to) 
    178178{ 
    179179        // Find peer in peer map 
     
    186186 
    187187        // Call base function 
    188         net6::host::on_client_send(pack, to); 
     188        net6::host::on_send_event(pack, to); 
    189189} 
    190190