CYExecute_ *execute(reinterpret_cast<CYExecute_ *>([value pointerValue]));
const char *data(execute->data_);
execute->data_ = NULL;
- execute->data_ = CYExecute(execute->pool_, CYUTF8String(data));
+ execute->data_ = CYExecute(CYGetJSContext(), execute->pool_, CYUTF8String(data));
}
@end
_assert(pthread_create(&client->thread_, NULL, &OnClient, client) == 0);
}
-extern "C" void CYHandleServer(pid_t pid) {
+extern "C" void CYHandleServer(pid_t pid, char *data, size_t size) {
CYInitializeDynamic();
int socket(_syscall(::socket(PF_UNIX, SOCK_STREAM, 0))); try {