Hello,
Is there any good alternative to twisted for network programming which
doesn't involve asynchronous programming? I don't really like the
asynchronous model because it is hard to incorporate all other
blocking libraries that I have to use. And the code doesn't look nice.
I recently found
On Sep 23, 8:29 pm, Tvrtko qvx3...@gmail.com wrote:
Hello,
Is there any good alternative to twisted for network programming which
doesn't involve asynchronous programming? I don't really like the
asynchronous model because it is hard to incorporate all other
blocking libraries that I have
On Sep 24, 4:36 am, Jeff McNeil j...@jmcneil.net wrote:
I know this probably isn't overly helpful, but Twisted allows you to
defer a blocking call to a thread using a 'deferToThread' construct.
It exists so that you can run otherwise synchronous calls in an async.
manner.
I'm already using
In article ce229a0d-4ebe-4e42-8638-4b1ee1dbd...@z5g2000vba.googlegroups.com,
thushiantha...@gmail.com wrote:
I am planning to develop a chatting software in Python, for my college
project. I am using Windows Vista. Is it possible to do sockets
programming in Python ? Any books or websites ?
CTO wrote:
There's a book called Foundations of Python Network Programming that
is pretty much as good a book as you could ever ask for on the subject. I
strongly recommend it, and I think you'll find many of the examples
relevant.
Yeah, I can recommend that book too.
--
JanC
--
http
thushiantha...@gmail.com wrote:
Hi everyone,
I am planning to develop a chatting software in Python, for my college
project. I am using Windows Vista. Is it possible to do sockets
programming in Python ? Any books or websites ? Also, i want to
develop a gui for that program. What are the gui
for that program. What are the gui tool kits available
for windows? I already knew about PyGtk and PyQT, but will they work
properly in Windows platform? Any suggestions?
Thank you. Excuse my English.
There's a book called Foundations of Python Network Programming that
is
pretty much as good a book as you
On Tue, May 26, 2009 at 4:00 AM, Dave Angel da...@ieee.org wrote:
thushiantha...@gmail.com wrote:
Hi everyone,
I am planning to develop a chatting software in Python, for my college
project. I am using Windows Vista. Is it possible to do sockets
programming in Python ? Any books or
Thank you, for all your support.
I will try wxPython with the sockets module.
thushanthan.
--
http://mail.python.org/mailman/listinfo/python-list
Hi everyone,
I am planning to develop a chatting software in Python, for my college
project. I am using Windows Vista. Is it possible to do sockets
programming in Python ? Any books or websites ? Also, i want to
develop a gui for that program. What are the gui tool kits available
for windows? I
thushiantha...@gmail.com wrote:
Hi everyone,
I am planning to develop a chatting software in Python, for my college
project. I am using Windows Vista. Is it possible to do sockets
programming in Python ? Any books or websites ? Also, i want to
develop a gui for that program. What are the gui
I wrote this server to handle incoming messages in a process using
multiprocessing named handler, and sending message in a Thread named
sender, 'cause I think the async_chat object can not pass between
processes.
My project is a network gate server with many complex logic handler
behind, so I
On 2008-02-27, Micah Cowan [EMAIL PROTECTED] wrote:
Grant Edwards wrote:
On 2008-02-26, Micah Cowan [EMAIL PROTECTED] wrote:
7stud, what you seem to be missing, and what I'm not sure if anyone has
clarified for you (I have only skimmed the thread), is that in TCP,
connections are uniquely
On Feb 25, 10:00 pm, Roy Smith [EMAIL PROTECTED] wrote:
In article
[EMAIL PROTECTED],
7stud [EMAIL PROTECTED] wrote:
But your claim that the server doesn't change its port flies in the
face of every description I've read about TCP connections and
accept(). The articles and books I've
On Feb 25, 10:08 pm, Steve Holden [EMAIL PROTECTED] wrote:
There can be many TCP connections to a server all using the same
endpoint. Take a look at the traffic coming out of any busy web server:
everything that comes out of the same server comes from port 80. That
doesn't stop it listening
7stud [EMAIL PROTECTED] writes:
When you surf the Web, say to http://www.google.com, your Web browser
is a client. The program you contact at Google is a server. When a
server is run, it sets up business at a certain port, say 80 in the
Web case. It then waits for clients to contact it. When
7stud wrote:
If two sockets are bound to the same host and port on the server, how
does data sent by the client get routed? Can both sockets recv() the
data?
I have learned a lot of stuff I did not know before from this thread,
so I think I can answer that.
There must be a layer of
7stud wrote:
On Feb 25, 10:00 pm, Roy Smith [EMAIL PROTECTED] wrote:
In article
[EMAIL PROTECTED],
7stud [EMAIL PROTECTED] wrote:
But your claim that the server doesn't change its port flies in the
face of every description I've read about TCP connections and
accept(). The articles and
Hrvoje Niksic wrote:
7stud [EMAIL PROTECTED] writes:
When you surf the Web, say to http://www.google.com, your Web browser
is a client. The program you contact at Google is a server. When a
server is run, it sets up business at a certain port, say 80 in the
Web case. It then waits for
On 2008-02-26, Micah Cowan [EMAIL PROTECTED] wrote:
7stud, what you seem to be missing, and what I'm not sure if anyone has
clarified for you (I have only skimmed the thread), is that in TCP,
connections are uniquely identified by a /pair/ of sockets (where
socket here means an address/port
In article
[EMAIL PROTECTED],
7stud [EMAIL PROTECTED] wrote:
If two sockets are bound to the same host and port on the server, how
does data sent by the client get routed? Can both sockets recv() the
data?
Undefined.
You certainly won't find the answer in the RFCs which define the
En Tue, 26 Feb 2008 07:53:24 -0200, 7stud [EMAIL PROTECTED]
escribió:
---
When you surf the Web, say to http://www.google.com, your Web browser
is a client. The program you contact at Google is a server. When a
server is run, it sets up business at a certain port, say 80 in the
Web case.
Grant Edwards wrote:
On 2008-02-26, Micah Cowan [EMAIL PROTECTED] wrote:
7stud, what you seem to be missing, and what I'm not sure if anyone has
clarified for you (I have only skimmed the thread), is that in TCP,
connections are uniquely identified by a /pair/ of sockets (where
socket here
Gabriel Genellina wrote:
En Tue, 26 Feb 2008 07:53:24 -0200, 7stud [EMAIL PROTECTED]
escribió:
---
When you surf the Web, say to http://www.google.com, your Web browser
is a client. The program you contact at Google is a server. When a
server is run, it sets up business at a certain port,
I have the following two identical clients
#test1.py:---
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = 'localhost'
port = 5052 #server port
s.connect((host, port))
print s.getsockname()
response = []
while 1:
piece = s.recv(1024)
if piece == '':
On 25 Feb, 09:51, 7stud [EMAIL PROTECTED] wrote:
I have the following two identical clients
#test1.py:---
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = 'localhost'
port = 5052 #server port
s.connect((host, port))
print s.getsockname()
response =
On Feb 25, 2:43 am, [EMAIL PROTECTED] wrote:
On 25 Feb, 09:51, 7stud [EMAIL PROTECTED] wrote:
I have the following two identical clients
#test1.py:---
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = 'localhost'
port = 5052 #server port
On Feb 25, 2:43 am, [EMAIL PROTECTED] wrote:
by reusing the same variables without storing the previous values.
This could make the Python
garbage collector to attempt freeing the socket object created with
the first connection, therefore
closing the connection.
If I'm right, your program
On Feb 25, 4:08 am, 7stud [EMAIL PROTECTED] wrote:
The question I'm really trying to answer is: if a client connects to a
host at a specific port, but the server changes the port when it
creates a new socket with accept(), how does data sent by the client
arrive at the correct port? Won't
The question I'm really trying to answer is: if a client connects to a
host at a specific port, but the server changes the port when it
creates a new socket with accept(), how does data sent by the client
arrive at the correct port? Won't the client be sending data to the
original port
On Feb 25, 5:17 am, 7stud [EMAIL PROTECTED] wrote:
On Feb 25, 4:08 am, 7stud [EMAIL PROTECTED] wrote:
The question I'm really trying to answer is: if a client connects to a
host at a specific port, but the server changes the port when it
creates a new socket with accept(), how does data
7stud [EMAIL PROTECTED] wrote:
The question I'm really trying to answer is: if a client connects to a
host at a specific port, but the server changes the port when it
creates a new socket with accept(), how does data sent by the client
arrive at the correct port? Won't the client be sending
on
the server creates a new socket for communication between the client
and server, and then the server goes back to listening on the original
socket. Here are two sources for that claim:
Socket Programming How To:
http://www.amk.ca/python/howto/sockets/
Tutorial on Network Programming with Python
On 2008-02-25, 7stud [EMAIL PROTECTED] wrote:
On Feb 25, 10:56 am, Thomas Bellman [EMAIL PROTECTED] wrote:
7stud [EMAIL PROTECTED] wrote:
The question I'm really trying to answer is: if a client connects to a
host at a specific port, but the server changes the port when it
creates a new
En Mon, 25 Feb 2008 20:03:02 -0200, 7stud [EMAIL PROTECTED]
escribió:
On Feb 25, 10:56 am, Thomas Bellman [EMAIL PROTECTED] wrote:
7stud [EMAIL PROTECTED] wrote:
In either case, there are still some things about the output that
don't make sense to me. Why does the server initially report
In article
[EMAIL PROTECTED],
7stud [EMAIL PROTECTED] wrote:
But your claim that the server doesn't change its port flies in the
face of every description I've read about TCP connections and
accept(). The articles and books I've read all claim that the server
port 5053 is a 'listening'
In article [EMAIL PROTECTED],
Gabriel Genellina [EMAIL PROTECTED] wrote:
En Mon, 25 Feb 2008 20:03:02 -0200, 7stud [EMAIL PROTECTED]
escribió:
On Feb 25, 10:56 am, Thomas Bellman [EMAIL PROTECTED] wrote:
7stud [EMAIL PROTECTED] wrote:
In either case, there are still some things about
7stud wrote:
On Feb 25, 10:56 am, Thomas Bellman [EMAIL PROTECTED] wrote:
7stud [EMAIL PROTECTED] wrote:
The question I'm really trying to answer is: if a client connects to a
host at a specific port, but the server changes the port when it
creates a new socket with accept(), how does data
In article [EMAIL PROTECTED],
Steve Holden [EMAIL PROTECTED] wrote:
TCP guarantees
that no two ephemeral port connections from the same client will use the
same port.
Where client is defined as IP Address. You could certainly have a
remote machine that has multiple IP addresses using
Roy Smith wrote:
In article [EMAIL PROTECTED],
Steve Holden [EMAIL PROTECTED] wrote:
TCP guarantees
that no two ephemeral port connections from the same client will use the
same port.
Where client is defined as IP Address. You could certainly have a
remote machine that has
On Sep 28, 12:10 pm, TheFlyingDutchman [EMAIL PROTECTED] wrote:
I have not read this book but just wanted to say, in case you don't
already know, they have Chapter 13 on FTP available as a free download
at the publisher's web site:
http://www.apress.com/book/view/1590593715
thanks for the
On Sep 28, 12:38 pm, sean tierney [EMAIL PROTECTED] wrote:
I just read it (though I bought it half a year ago...don't judge :).
Author recommends Python 2.3 and above...and as far as I know the
examples are good. And if anything IS outdated -- you'll be able to
do some quick research to get
Hello,
i'm debating if i should buy this book. it received good reviews at
Amazon: http://tinyurl.com/24zvrf. but it was published in 2004 and
i'm afraid quite some materials might be outdated? any input?
thanks,
kelie
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 28, 2:59 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
i'm debating if i should buy this book. it received good reviews at
Amazon:http://tinyurl.com/24zvrf. but it was published in 2004 and
i'm afraid quite some materials might be outdated? any input?
thanks,
kelie
I have
I just read it (though I bought it half a year ago...don't judge :).
Author recommends Python 2.3 and above...and as far as I know the
examples are good. And if anything IS outdated -- you'll be able to
do some quick research to get you to where you need to be...and he
does mention code several
anyway.
In any case, I hope you are aware that spoofing IP packets gives you
bad karma.
No problem about it. I'm just a lover of low-level network programming.
=)
--
http://mail.python.org/mailman/listinfo/python-list
sturlamolden wrote:
billie wrote:
RAW network programming under Windows it's not always possible because
of the security limitations that microsoft introduced in the latest
Windows versions and that affects WinSocket API.
On UNIX systems I'm able to freely send raw packets (for example
RAW network programming under Windows it's not always possible because
of the security limitations that microsoft introduced in the latest
Windows versions and that affects WinSocket API.
On UNIX systems I'm able to freely send raw packets (for example I'm
able to compile IP packets with a src
billie wrote:
RAW network programming under Windows it's not always possible because
of the security limitations that microsoft introduced in the latest
Windows versions and that affects WinSocket API.
On UNIX systems I'm able to freely send raw packets (for example I'm
able to compile IP
Hi, I am currently doing my final year project Secure mobile Robot Management . I have done the theoretical aspects of it till now and now thinking of coding it .I would like to code in Python , but i am new to Python Network Programming .
Some of features of my project are: 1. Each robot can
How will Pyon help my cause ?
Bill Maxwell wrote:
On 22 Jun 2006 12:02:14 -0700, [EMAIL PROTECTED] wrote:
I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.
I have one Linux Box and one Windows PC. I want to have a
On 2006-06-23, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
How will Pyon help my cause ?
What's Pyon?
--
Grant Edwards grante Yow! We are now enjoying
at total mutual interaction in
In article [EMAIL PROTECTED],
Grant Edwards [EMAIL PROTECTED] wrote:
On 2006-06-23, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
How will Pyon help my cause ?
What's Pyon?
.
.
.
A misreading of Pyro. Pyro URL:
On 2006-06-23, Cameron Laird [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED],
Grant Edwards [EMAIL PROTECTED] wrote:
On 2006-06-23, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
How will Pyon help my cause ?
What's Pyon?
.
.
I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.
I have one Linux Box and one Windows PC. I want to have a daemon
running on Windows PC which listens on some specicif port number. I
want to send a TCP/IP or UDP/IP packet
[EMAIL PROTECTED] wrote:
I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.
I have one Linux Box and one Windows PC. I want to have a daemon
running on Windows PC which listens on some specicif port number. I
want
Thanks...I will read that up...could you give me some more headstart or
if you any sample code which I can study.
Thanks for your help, every help is appreciated
Fredrik Lundh wrote:
[EMAIL PROTECTED] wrote:
I am a newbie in python. I want to learn and implement a small
networking
[EMAIL PROTECTED] wrote:
I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.
(hums the Batman Theme song replacing the words Batman with Google)...
http://www.amk.ca/python/howto/sockets/
[EMAIL PROTECTED] wrote:
Thanks...I will read that up...could you give me some more headstart or
if you any sample code which I can study.
both chapters I pointed you to contain examples.
/F
--
http://mail.python.org/mailman/listinfo/python-list
I have Python 2.4.2 on windows and Linux both. I got an import error.
how can we obtain the twisted libraries ?
When I try to run your code
Jean-Paul Calderone wrote:
On 22 Jun 2006 12:02:14 -0700, [EMAIL PROTECTED] wrote:
I am a newbie in python. I want to learn and implement a small
[EMAIL PROTECTED] wrote:
Really, was that so hard?
Python makes sockets a total breeze. You can write an 80's style HTTP
server in less than a page of code.
But making a *good* 80's style http/socket server is a lot of work.
Better pick one of the high level protocols built on top of it,
[EMAIL PROTECTED] a écrit :
I have Python 2.4.2 on windows and Linux both. I got an import error.
how can we obtain the twisted libraries ?
Is google down ?
--
http://mail.python.org/mailman/listinfo/python-list
I got it ...initially sourceforge page linked all old libraries..later
then got this link to twistedmatrix. Thanks.
Bruno Desthuilliers wrote:
[EMAIL PROTECTED] a écrit :
I have Python 2.4.2 on windows and Linux both. I got an import error.
how can we obtain the twisted libraries ?
Is
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
I have Python 2.4.2 on windows and Linux both. I got an import error.
how can we obtain the twisted libraries ?
.
.
.
Look for Downloading under URL:
On 22 Jun 2006 12:02:14 -0700, [EMAIL PROTECTED] wrote:
I am a newbie in python. I want to learn and implement a small
networking concept. Please help me. Every help is appreciated.
I have one Linux Box and one Windows PC. I want to have a daemon
running on Windows PC which listens on some
I just realized that you are the author of Pyro. Will it be of any help
to me ??
Irmen de Jong wrote:
[EMAIL PROTECTED] wrote:
Really, was that so hard?
Python makes sockets a total breeze. You can write an 80's style HTTP
server in less than a page of code.
But making a *good* 80's
John Walton wrote:
Hello. It's me again. Thanks for all the help with
the Python Networking Resources, but does anyone know
what I'll need to know to write a paper on Network
Programming and Python. Like terminology and all
that. Maybe I'll have a section on socketets, TCP,
Clients (half
messenger program. I only have
a few problems:
1. I know squat about Python network Programming
2. I know nothing about networks
So if any of you know of a good Python Networking Tutorial or a website
with lots of information on networks and networking, please reply.
Thanks!
There are two
a simple instant messenger program. I only have
a few problems:
1. I know squat about Python network Programming
2. I know nothing about networks
So if any of you know of a good Python Networking Tutorial or a website
with lots of information on networks and networking, please reply.
Thanks
only have a few problems:
1. I know squat about Python network Programming
2. I know nothing about networks
So if any of you know of a good Python Networking
Tutorial or a website with lots of information on
networks and networking, please reply. Thanks!
Is it the purpose of your project
Python's networking
capabilities by writing a simple instant messenger program. I only have a
few problems:
1. I know squat about Python network Programming
2. I know nothing about networks
So if any of you know of a good Python Networking Tutorial or a website
with lots
. I know squat about Python network Programming
2. I know nothing about networks
So if any of you know of a good Python Networking
Tutorial or a website with lots of information on
networks and networking, please reply. Thanks!
__
Do You Yahoo
If i had started in 8th grade, I'd be Guido MartelliPeters by now!
Anyway, these people claim to have 125 tutorials, it'll take at least a
couple hours to work thru
http://www.awaretek.com/tutorials.html
--
http://mail.python.org/mailman/listinfo/python-list
only have a few problems:
1. I know squat about Python network Programming
2. I know nothing about networks
So if any of you know of a good Python Networking
Tutorial or a website with lots of information on
networks and networking, please reply. Thanks
Hello. It's me again. Thanks for all the help with
the Python Networking Resources, but does anyone know
what I'll need to know to write a paper on Network
Programming and Python. Like terminology and all
that. Maybe I'll have a section on socketets, TCP,
Clients (half of the stuff I don't even
75 matches
Mail list logo