Did I find the right examples for you? yes no

All Samples(74)  |  Call(0)  |  Derive(0)  |  Import(74)
This module implements AMP, the Asynchronous Messaging Protocol.

AMP is a protocol for sending multiple asynchronous request/response pairs over
the same connection.  Requests and responses are both collections of key/value
pairs.

AMP is a very simple protocol which is not an application.  This module is a
"protocol construction kit" of sorts; it attempts to be the simplest wire-level
implementation of Deferreds.  AMP provides the following base-level features:
(more...)

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/core/examples/ampserver.py   hortonworks-sandbox(Download)
from twisted.protocols import amp
 
class Sum(amp.Command):
    arguments = [('a', amp.Integer()),
                 ('b', amp.Integer())]

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/core/examples/ampclient.py   hortonworks-sandbox(Download)
from twisted.internet import reactor, defer
from twisted.internet.protocol import ClientCreator
from twisted.protocols import amp
from ampserver import Sum, Divide
 

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/core/examples/ampserver.py   oh-mainline(Download)
from twisted.protocols import amp
 
class Sum(amp.Command):
    arguments = [('a', amp.Integer()),
                 ('b', amp.Integer())]

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/core/examples/ampclient.py   oh-mainline(Download)
from twisted.internet import reactor, defer
from twisted.internet.protocol import ClientCreator
from twisted.protocols import amp
from ampserver import Sum, Divide
 

src/t/w/Twisted-13.2.0/doc/core/examples/ampserver.py   Twisted(Download)
from twisted.protocols import amp
 
class Sum(amp.Command):
    arguments = [('a', amp.Integer()),
                 ('b', amp.Integer())]

src/c/s/CS112-Spring2012-HEAD/samplecode/networking_example/coinget/network/cmd/world.py   CS112-Spring2012(Download)
from twisted.protocols import amp
 
from coin import CoinArgument
from player import PlayerArgument
 

src/c/s/CS112-Spring2012-HEAD/samplecode/networking_example/coinget/network/cmd/player.py   CS112-Spring2012(Download)
import struct
 
import pygame
from twisted.protocols import amp
 

src/c/s/CS112-Spring2012-HEAD/samplecode/networking_example/coinget/network/cmd/coin.py   CS112-Spring2012(Download)
import struct
 
from twisted.protocols import amp
 
from coinget.world import Coin

src/c/s/CS112-Spring2012-HEAD/samplecode/networking_example/coinget/server/network.py   CS112-Spring2012(Download)
from louie import dispatcher
 
from twisted.internet.protocol import ServerFactory
from twisted.protocols import amp
 

src/c/s/CS112-Spring2012-HEAD/samplecode/networking_example/coinget/client/network.py   CS112-Spring2012(Download)
from louie import dispatcher
 
from twisted.internet.protocol import ReconnectingClientFactory
from twisted.protocols import amp
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next