This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _POSIX_PTHREAD_SEMANTICS | |
#include <stdlib.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <time.h> | |
#include <stdio.h> | |
static double compute_time_diff(struct timeval start, struct timeval end) | |
{ | |
double diff = end.tv_sec - start.tv_sec; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.0</real> | |
<key>Green Component</key> | |
<real>0.0</real> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = Titanium.Filesystem; | |
var api = Titanium.API; | |
api.print("worker starting\n"); | |
var path = fs.getResourcesDirectory() + fs.getSeparator() + 'worker.php'; | |
api.print("PHP code is at " + path + "\n"); | |
if (false) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SSLSocket { | |
public $s = null; | |
public $on_err = null; | |
public $on_read = null; | |
public $on_readComplete = null; | |
public $on_timeout = null; | |
public $on_write = null; | |
public $endpoint = null; | |
public $wbuffer = array(); | |
public $timer = null; |
NewerOlder