SockIt
|
00001 /* 00002 * Event.cpp 00003 * 00004 * Created on: Jun 24, 2011 00005 * Author: jtedesco 00006 */ 00007 00008 #include "Event.h" 00009 00010 Event::Event() 00011 { 00012 // Expose these methods to the Javascript 00013 registerMethod("send", make_method(this, &Event::send)); 00014 registerMethod("sendBytes", make_method(this, &Event::send_bytes)); 00015 registerMethod("read", make_method(this, &Event::read)); 00016 registerMethod("readBytes", make_method(this, &Event::read_bytes)); 00017 registerMethod("getHost", make_method(this, &Event::get_host)); 00018 registerMethod("getPort", make_method(this, &Event::get_port)); 00019 } 00020 00021 00022 Event::~Event() 00023 { 00024 // Nothing to do here 00025 }