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
#include <string.h> | |
#include <net-snmp/net-snmp-config.h> | |
#include <net-snmp/types.h> | |
#include <net-snmp/library/snmp_api.h> | |
#include <net-snmp/library/snmp_transport.h> | |
#include <net-snmp/library/snmp_client.h> | |
#include <net-snmp/library/system.h> | |
#include <string> | |
using namespace std; |
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
#include <string.h> | |
#include <net-snmp/net-snmp-config.h> | |
#include <net-snmp/types.h> | |
#include <net-snmp/library/snmp_api.h> | |
#include <net-snmp/library/snmp_transport.h> | |
#include <net-snmp/library/snmp_client.h> | |
#include <net-snmp/library/system.h> | |
#include <string> | |
using namespace std; |
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
require 'rubygems' | |
require 'msgpack' | |
require 'msgpack/rpc' | |
class CustomData | |
attr_accessor :a | |
attr_accessor :b | |
def initialize(a, b) | |
@a = a |
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
import java.io.*; | |
import java.net.*; | |
import java.util.*; | |
import java.util.concurrent.*; | |
import java.lang.reflect.*; | |
import org.apache.mina.common.*; | |
import org.apache.mina.transport.socket.nio.*; | |
import org.apache.mina.filter.codec.*; | |
import org.apache.mina.filter.executor.*; |
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
require 'rubygems' | |
gem 'msgpack' | |
gem 'msgpack-rpc' | |
require 'msgpack' | |
require 'msgpack/rpc' | |
port = 1985 | |
cli = MessagePack::RPC::Client.new("127.0.0.1", port) | |
cli.timeout = 0.1 |
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 org.msgpack.rpc; | |
import java.io.IOException; | |
import org.msgpack.rpc.client.Client; | |
public class App | |
{ | |
public static void main( String[] args ) | |
{ |
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
gem 'msgpack' | |
gem 'msgpack-rpc' | |
require 'msgpack' | |
require 'msgpack/rpc' | |
class CDBServer | |
def hello | |
puts "hello" | |
return 1 | |
end |
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 org.msgpack.rpc; | |
import java.io.IOException; | |
import org.msgpack.rpc.client.Client; | |
import org.msgpack.rpc.server.*; | |
/** | |
* Hello world! | |
* |
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
#!/usr/bin/env python | |
from twisted.internet import reactor | |
from twisted.internet import protocol | |
import msgpack | |
class UserHandler: | |
def hello0(self): | |
print "hello!" | |
return 0 |
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
/* | |
sedue.arc0 | |
sedue.system.indexes | |
sedue.arc1 | |
{ _id: ObjId(4bffe5311422d029a79f7208), filename: "myfile", length: 2165584, chunkSize: 262144, uploadDate: new Date(1275061553566), md5: "801879daffc1edcb96bd3e11a038ffd7" } | |
file found | |
nChunks: 9 | |
Success write | |
*/ |
OlderNewer