473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

[Twisted-Python] Problem with Echoserver (TCP), Help!

Hi, I am new to Twisted. I use a Twisted 1.3.0 on MS Windows XP Home
Edition, my python version is 2.3

I try the TCP echoserv.py and echoclient.py example. But the client
always fail with following message:

Unhandled error in Deferred:
Traceback (most recent call last):
File "D:\PYTHON23\Lib\site-packages\twisted\internet\default.py", line
134, in
mainLoop
self.runUntilCurrent()
File "D:\PYTHON23\Lib\site-packages\twisted\internet\base.py", line
423, in ru
nUntilCurrent
call.func(*call.args, **call.kw)
File "D:\PYTHON23\Lib\site-packages\twisted\internet\tcp.py", line
384, in res
olveAddress
d.addCallbacks(self._setRealAddress, self.failIfNotConnected)
File "D:\PYTHON23\Lib\site-packages\twisted\internet\defer.py", line
205, in a
ddCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "D:\PYTHON23\Lib\site-packages\twisted\internet\defer.py", line
338, in _
runCallbacks
self.result = callback(self.result, *args, **kw)
File "D:\PYTHON23\Lib\site-packages\twisted\internet\tcp.py", line
388, in _se
tRealAddress
self.doConnect()
File "D:\PYTHON23\Lib\site-packages\twisted\internet\tcp.py", line
403, in doConnect
r, w, e = select.select([], [], [self.fileno()], 0.0)
select.error: (10022, '')
What is the matter? Thanks.

-SeSe
Jul 18 '05 #1
2 2355
Hi,

My experience with Twisted is also limited but let me try to help you.
I tried the same combo as you and it worked well with the following
responses:
receive: Hello, world!
receive: What a fine day it is.
receive: Bye-bye!
connection lost: Connection was closed cleanly.

I am sure you started the server before the client.

Do you have some firewall software installed that prevents the client
from connecting to the server?

Thanks
--Kartic

Jul 18 '05 #2
Thanks. I have disabled my firewall. But still failed.

It is a bit strange that echo server UDP works. Only TCP doesn't.

Regards,
SeSe
Kartic wrote:
Hi,

My experience with Twisted is also limited but let me try to help you.
I tried the same combo as you and it worked well with the following
responses:
receive: Hello, world!
receive: What a fine day it is.
receive: Bye-bye!
connection lost: Connection was closed cleanly.

I am sure you started the server before the client.

Do you have some firewall software installed that prevents the client
from connecting to the server?

Thanks
--Kartic

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Benson | last post by:
Hi, I've read a little about Zope but know only 1 hour's worth of web surfing about Twisted. I was initially trying to puzzle out how to use Zope for a socket server, and stumbled onto Twisted, which...
0
by: Guyon Morée | last post by:
Hi all, Below this message you can see my code. It is a modified version of the twisted xml-rpc server examples. I am trying to figure out how to implement non-blocking methods. I found out that...
2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
11
by: mir nazim | last post by:
hi, i m planning to start writing intranet applications and want ur real cool advices for choosing the correct platform. the choice is between the three: 1. Twisted 2. Medusa 3. Zope (i do...
3
by: flupke | last post by:
Hi, previously i made an application that used sockets to do some network based processing. My next app is again going to be a client/server app and i wanted to see if i can't find an easier...
0
by: Thomas Guettler | last post by:
Hi, Out of sheer curiosity: Does Twisted scale if the server has several CPUs? As far as I know twisted uses one interpreter. This means a prefork server modul might be better to server...
4
by: rzimerman | last post by:
I'm hoping to write a program that will read any number of urls from stdin (1 per line), download them, and process them. So far my script (below) works well for small numbers of urls. However, it...
2
by: Matthew Warren | last post by:
Hallo, telnet (dbprod) Login: Could anyone show how the above would be written using the twisted framework? All I'm after is a more 'intelligent' interactive telnet session (handles 'vi'...
1
by: sndive | last post by:
i have a lot of trouble selling twisted a a client lib for network access (on embedded platform) the group i'm a member of wants to write some unmaintainable threaded blocking junk in c--. does...
0
by: Stodge | last post by:
I'm trying to get a simple multicast application working using Twisted; so far I have: from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.