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
package main | |
import ( | |
"container/list" | |
"time" | |
"strconv" | |
"fmt" | |
lb "gosb" | |
) |
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
package main | |
import ( | |
"github.com/gliderlabs/ssh" | |
"fmt" | |
"io" | |
"log" | |
lb "gosb" | |
) |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
lb "gosb" | |
) | |
func init() { | |
lb.Initialize(lb.MPK_BACKEND) |
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
package main | |
import ( | |
"net/http" | |
lb "gosb" | |
) | |
func init() { | |
lb.Initialize(lb.MPK_BACKEND) | |
} |
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
package main | |
import ( | |
"container/list" | |
lb "gosb" | |
) | |
func init() { | |
lb.Initialize(lb.MPK_BACKEND) | |
} |
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
#!/bin/bash | |
BIN="$1" | |
CONFIG="$2" | |
if [[ $BIN == "" || $CONFIG == "" ]] | |
then | |
echo "usage: $0 <path_to_relayer> <path_to_config>" | |
exit 1 | |
fi |
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
mod jit { | |
use libc::{c_void, dlclose, dlopen, dlsym, RTLD_NOW}; | |
use std::ffi::CString; | |
use std::fs::File; | |
use std::io::prelude::*; | |
use std::io::SeekFrom; | |
use std::process::Command; | |
const SOURCE_PATH: &'static str = "/tmp/jit.rs"; | |
const LIB_PATH: &'static str = "/tmp/librsjit.so"; |