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
from circuits import Manager, Debugger; from circuits.core.pollers import Select; from circuits.net.sockets import TCPServer, TCPClient; from circuits.net.events import close, connect, write | |
m = Manager() + Select() + Debugger() | |
tcp_server = TCPServer(0, secure=True, certfile='/home/git/circuits/tests/net/cert.pem', channel='server') | |
tcp_client = TCPClient(channel='client') | |
tcp_server.register(m) | |
tcp_client.register(m) | |
m.start() | |
from time import sleep; sleep(1) | |
tcp_client.fire(connect(*tcp_server._sock.getsockname(), **{'secure':True})) |
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
commit b50741f08af90f01e35d4925f545bd988e3c20a1 | |
Author: SpaceOne <[email protected]> | |
Date: Mon Sep 21 23:25:17 2015 +0200 | |
Create handshake event | |
TODO: rename handshake.error, handshake.success | |
TODO: check if we need yield self.wait() arround firing of handshake | |
event? |
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
Declaration of contribution to the development of Univention software | |
The Contributor makes available to Univention GmbH, Mary-Somerville Str.1, 28359 Bremen, Germany, | |
(hereinafter referred to as Univention) any original work of authorship including any modifications | |
or additions to an existing work, that is intentionally submitted by the contributor to Univention | |
for inclusion in, or documentation of, any of the products owned or managed by Univention | |
(hereinafter referred to as “Work”), which may be licensed to third parties by Univention subject | |
to different conditions (hereinafter referred to as Univention software). | |
They are made available with the objective of integrating the corresponding work into the Univention software. | |
In doing so, neither Univention’s right to the free licensing of Univention software including the |