Close the connection, optionally after writing
# File lib/cool.io/eventmachine.rb, line 216 def close_connection(after_writing = false) return close_connection_after_writing if after_writing @wrapped_coolio.close end
Close the connection after all data has been written
# File lib/cool.io/eventmachine.rb, line 222 def close_connection_after_writing @wrapped_coolio.output_buffer_size.zero? ? @wrapped_coolio.close : @wrapped_coolio.should_close_after_writing end
# File lib/cool.io/eventmachine.rb, line 226 def get_peername family, port, host_name, host_ip = @wrapped_coolio.peeraddr Socket.pack_sockaddr_in(port, host_ip) # pack it up :) end
Callback fired when data is received def receive_data(data); end
# File lib/cool.io/eventmachine.rb, line 205 def heres_your_socket(instantiated_coolio_socket) instantiated_coolio_socket.call_back_to_this self @wrapped_coolio = instantiated_coolio_socket end
we will need to call ‘their functions’ appropriately – the commented out ones, here
Callback fired when connection is created
# File lib/cool.io/eventmachine.rb, line 195 def post_init # I thought we were 'overriding' EM's existing methods, here. # Huh? Why do we have to define these then? end
Generated with the Darkfish Rdoc Generator 2.