This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 java.nio.ByteBuffer; | |
| import org.jboss.netty.bootstrap.*; | |
| import org.jboss.netty.channel.*; | |
| import org.jboss.netty.channel.socket.nio.*; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
OlderNewer