- Timestamp:
- 01/06/07 23:31:12 (6 years ago)
- Parents:
- 3e51f8e95a8bf974bbe8260eb166457743115f9d
- Children:
- 4e4b30464aab06db06dfcfd1e51882c9fca8992f
- git-committer:
- Philipp Kern <phil@0x539.de> / 2007-01-06T22:31:12Z+0000
- Files:
-
- 1 modified
-
src/buffer_wrapper_generic.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/buffer_wrapper_generic.cpp
r3e3c8e1 rfefa5bc 65 65 66 66 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); 68 68 69 69 if(condition & (Glib::IO_IN) ) 70 sock. read_event().emit(sock,net6::socket::INCOMING);70 sock.io_event().emit(net6::socket::INCOMING); 71 71 72 72 if(condition & (Glib::IO_OUT) ) 73 sock. write_event().emit(sock,net6::socket::OUTGOING);73 sock.io_event().emit(net6::socket::OUTGOING); 74 74 75 75 return true; … … 92 92 } 93 93 94 void Gobby::Client::on_ client_send(const net6::packet& pack)94 void Gobby::Client::on_send_event(const net6::packet& pack) 95 95 { 96 96 if(conn.send_queue_size() == 0) 97 97 m_ioconn.remove_connect(Glib::IO_OUT); 98 net6::client::on_ client_send(pack);98 net6::client::on_send_event(pack); 99 99 } 100 100 … … 159 159 } 160 160 161 void Gobby::Host::on_ join(net6::host::peer& new_peer)161 void Gobby::Host::on_connect(net6::host::peer& new_peer) 162 162 { 163 163 // Build IOConnection … … 174 174 } 175 175 176 void Gobby::Host::on_ client_send(const net6::packet& pack,177 net6::host::peer& to)176 void Gobby::Host::on_send_event(const net6::packet& pack, 177 net6::host::peer& to) 178 178 { 179 179 // Find peer in peer map … … 186 186 187 187 // Call base function 188 net6::host::on_ client_send(pack, to);188 net6::host::on_send_event(pack, to); 189 189 } 190 190
