summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authordonovan <donovan@ell-ee-dee.local>2008-06-11 13:07:46 -0700
committerdonovan <donovan@ell-ee-dee.local>2008-06-11 13:07:46 -0700
commita025e0478ffea2d1cc1441bfff8a2bbbbae93399 (patch)
tree95f2fbab8b2f57a70c748b7e574b5fbe26dbde08 /examples
parent1cfaf3a0a1350b674c91795900dbd0efc6349ebb (diff)
downloadeventlet-a025e0478ffea2d1cc1441bfff8a2bbbbae93399.tar.gz
Remove .svn directories
Diffstat (limited to 'examples')
-rw-r--r--examples/.svn/all-wcprops17
-rw-r--r--examples/.svn/entries54
-rw-r--r--examples/.svn/format1
-rw-r--r--examples/.svn/prop-base/echoserver.py.svn-base5
-rw-r--r--examples/.svn/prop-base/webcrawler.py.svn-base5
-rw-r--r--examples/.svn/text-base/echoserver.py.svn-base52
-rw-r--r--examples/.svn/text-base/webcrawler.py.svn-base55
7 files changed, 0 insertions, 189 deletions
diff --git a/examples/.svn/all-wcprops b/examples/.svn/all-wcprops
deleted file mode 100644
index 8bd82e5..0000000
--- a/examples/.svn/all-wcprops
+++ /dev/null
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 39
-/svn/eventlet/!svn/ver/3/trunk/examples
-END
-webcrawler.py
-K 25
-svn:wc:ra_dav:version-url
-V 53
-/svn/eventlet/!svn/ver/3/trunk/examples/webcrawler.py
-END
-echoserver.py
-K 25
-svn:wc:ra_dav:version-url
-V 53
-/svn/eventlet/!svn/ver/3/trunk/examples/echoserver.py
-END
diff --git a/examples/.svn/entries b/examples/.svn/entries
deleted file mode 100644
index b1283ae..0000000
--- a/examples/.svn/entries
+++ /dev/null
@@ -1,54 +0,0 @@
-8
-
-dir
-100
-https://svn.secondlife.com/svn/eventlet/trunk/examples
-https://svn.secondlife.com/svn/eventlet
-
-
-
-2007-08-23T23:57:41.609100Z
-3
-which.linden
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-cde37729-5338-0410-b9e2-c56166a61366
-
-webcrawler.py
-file
-
-
-
-
-2008-02-20T19:57:15.000000Z
-d97f9983eb0eb98eddc66259f2abb82d
-2007-08-23T23:51:23.835123Z
-1
-which.linden
-has-props
-
-echoserver.py
-file
-
-
-
-
-2008-02-20T19:57:15.000000Z
-ee5d6fb335a4a28b2b9af8ae3fdca660
-2007-08-23T23:51:23.835123Z
-1
-which.linden
-has-props
-
diff --git a/examples/.svn/format b/examples/.svn/format
deleted file mode 100644
index 45a4fb7..0000000
--- a/examples/.svn/format
+++ /dev/null
@@ -1 +0,0 @@
-8
diff --git a/examples/.svn/prop-base/echoserver.py.svn-base b/examples/.svn/prop-base/echoserver.py.svn-base
deleted file mode 100644
index bdbd305..0000000
--- a/examples/.svn/prop-base/echoserver.py.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 13
-svn:eol-style
-V 6
-native
-END
diff --git a/examples/.svn/prop-base/webcrawler.py.svn-base b/examples/.svn/prop-base/webcrawler.py.svn-base
deleted file mode 100644
index bdbd305..0000000
--- a/examples/.svn/prop-base/webcrawler.py.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 13
-svn:eol-style
-V 6
-native
-END
diff --git a/examples/.svn/text-base/echoserver.py.svn-base b/examples/.svn/text-base/echoserver.py.svn-base
deleted file mode 100644
index 3fe0191..0000000
--- a/examples/.svn/text-base/echoserver.py.svn-base
+++ /dev/null
@@ -1,52 +0,0 @@
-"""\
-@file echoserver.py
-
-Simple server that listens on port 6000 and echos back every input to
-the client. To try out the server, start it up by running this file.
-
-Connect to it with:
- telnet localhost 6000
-
-You terminate your connection by terminating telnet (typically Ctrl-]
-and then 'quit')
-
-Copyright (c) 2007, Linden Research, Inc.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-"""
-
-from eventlet import api
-
-def handle_socket(client):
- print "client connected"
- while True:
- # pass through every non-eof line
- x = client.readline()
- if not x: break
- client.write(x)
- print "echoed", x
- print "client disconnected"
-
-# server socket listening on port 6000
-server = api.tcp_listener(('0.0.0.0', 6000))
-while True:
- new_sock, address = server.accept()
- # handle every new connection with a new coroutine
- api.spawn(handle_socket, new_sock)
-
-server.close()
diff --git a/examples/.svn/text-base/webcrawler.py.svn-base b/examples/.svn/text-base/webcrawler.py.svn-base
deleted file mode 100644
index 27c9c40..0000000
--- a/examples/.svn/text-base/webcrawler.py.svn-base
+++ /dev/null
@@ -1,55 +0,0 @@
-"""\
-@file webcrawler.py
-
-This is a simple web "crawler" that fetches a bunch of urls using a coroutine pool. It fetches as
- many urls at time as coroutines in the pool.
-
-Copyright (c) 2007, Linden Research, Inc.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-"""
-
-urls = ["http://www.google.com/intl/en_ALL/images/logo.gif",
- "http://wiki.secondlife.com/w/images/secondlife.jpg",
- "http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif"]
-
-import time
-from eventlet import coros, httpc, util
-
-# replace socket with a cooperative coroutine socket because httpc
-# uses httplib, which uses socket. Removing this serializes the http
-# requests, because the standard socket is blocking.
-util.wrap_socket_with_coroutine_socket()
-
-def fetch(url):
- # we could do something interesting with the result, but this is
- # example code, so we'll just report that we did it
- print "%s fetching %s" % (time.asctime(), url)
- httpc.get(url)
- print "%s fetched %s" % (time.asctime(), url)
-
-pool = coros.CoroutinePool(max_size=4)
-waiters = []
-for url in urls:
- waiters.append(pool.execute(fetch, url))
-
-# wait for all the coroutines to come back before exiting the process
-for waiter in waiters:
- waiter.wait()
-
-