Re: Network programming ?

2009-05-29 Thread Aahz
In article , 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 ? Also, i want to >develop a gui for that program. What are the gui tool kits available >f

Re: Network programming ?

2009-05-28 Thread JanC
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:

Re: Network programming ?

2009-05-26 Thread Benjamin Kaplan
On Tue, May 26, 2009 at 4:00 AM, Dave Angel 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 websites ?

Re: Network programming ?

2009-05-26 Thread thushianthan15
Thank you, for all your support. I will try wxPython with the sockets module. thushanthan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Network programming ?

2009-05-26 Thread CTO
On May 25, 11:05 pm, 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 tha

Re: Network programming ?

2009-05-26 Thread Dave Angel
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 to

Re: Network programming ?

2009-05-25 Thread Ralf Schoenian
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 to

Re: network programming: how does s.accept() work?

2008-02-27 Thread Grant Edwards
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, >>> connectio

Re: network programming: how does s.accept() work?

2008-02-26 Thread Micah Cowan
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 ce

Re: network programming: how does s.accept() work?

2008-02-26 Thread Micah Cowan
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 >> "

Re: network programming: how does s.accept() work?

2008-02-26 Thread Gabriel Genellina
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 c

Re: network programming: how does s.accept() work?

2008-02-26 Thread Roy Smith
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 p

Re: network programming: how does s.accept() work?

2008-02-26 Thread Grant Edwards
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

Re: network programming: how does s.accept() work?

2008-02-26 Thread Micah Cowan
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 wait

Re: network programming: how does s.accept() work?

2008-02-26 Thread Steve Holden
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

Re: network programming: how does s.accept() work?

2008-02-26 Thread Frank Millman
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 sof

Re: network programming: how does s.accept() work?

2008-02-26 Thread Hrvoje Niksic
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.

Re: network programming: how does s.accept() work?

2008-02-26 Thread 7stud
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 a

Re: network programming: how does s.accept() work?

2008-02-26 Thread 7stud
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 listeni

Re: network programming: how does s.accept() work?

2008-02-25 Thread Steve Holden
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 machi

Re: network programming: how does s.accept() work?

2008-02-25 Thread Roy Smith
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 addresse

Re: network programming: how does s.accept() work?

2008-02-25 Thread Steve Holden
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(), h

Re: network programming: how does s.accept() work?

2008-02-25 Thread Roy Smith
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 st

Re: network programming: how does s.accept() work?

2008-02-25 Thread Roy Smith
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 'listeni

Re: network programming: how does s.accept() work?

2008-02-25 Thread Gabriel Genellina
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 initiall

Re: network programming: how does s.accept() work?

2008-02-25 Thread Grant Edwards
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 >> >

Re: network programming: how does s.accept() work?

2008-02-25 Thread 7stud
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 sen

Re: network programming: how does s.accept() work?

2008-02-25 Thread Thomas Bellman
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 sen

Re: network programming: how does s.accept() work?

2008-02-25 Thread 7stud
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(), h

Re: network programming: how does s.accept() work?

2008-02-25 Thread bockman
> > 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 por

Re: network programming: how does s.accept() work?

2008-02-25 Thread 7stud
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?  Wo

Re: network programming: how does s.accept() work?

2008-02-25 Thread 7stud
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 p

Re: network programming: how does s.accept() work?

2008-02-25 Thread 7stud
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  

Re: network programming: how does s.accept() work?

2008-02-25 Thread bockman
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()

Re: Network Programming in Python

2006-06-23 Thread Grant Edwards
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? > . >

Re: Network Programming in Python

2006-06-23 Thread Cameron Laird
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 http:

Re: Network Programming in Python

2006-06-23 Thread Grant Edwards
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

Re: Network Programming in Python

2006-06-23 Thread diffuser78
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 t

Re: Network Programming in Python

2006-06-22 Thread diffuser78
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

Re: Network Programming in Python

2006-06-22 Thread Bill Maxwell
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 s

Re: Network Programming in Python

2006-06-22 Thread Cameron Laird
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 http://twistedmatr

Re: Network Programming in Python

2006-06-22 Thread diffuser78
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 ? > > I

Re: Network Programming in Python

2006-06-22 Thread Bruno Desthuilliers
[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

Re: Network Programming in Python

2006-06-22 Thread Irmen de Jong
[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 i

Re: Network Programming in Python

2006-06-22 Thread diffuser78
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 > >ne

Re: Network Programming in Python

2006-06-22 Thread Fredrik Lundh
[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. -- http://mail.python.org/mailman/listinfo/python-list

Re: Network Programming in Python

2006-06-22 Thread [EMAIL PROTECTED]
[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/ http://www.devshed.com/c/a/Pyth

Re: Network Programming in Python

2006-06-22 Thread diffuser78
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 co

Re: Network Programming in Python

2006-06-22 Thread Jean-Paul Calderone
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 sp

Re: Network Programming in Python

2006-06-22 Thread Fredrik Lundh
[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 > w

Re: network programming

2005-08-22 Thread Tom Anderson
On Mon, 22 Aug 2005, Steve Holden wrote: > Tom Anderson wrote: > >> On Sun, 21 Aug 2005, John Walton wrote: >> >>> Hello, everyone. I just began school, and they already assigned us >>> science fair. Since I'm in 8th grade, I get to do demonstrations for our >>> projects. I'm probably going t

Re: network programming

2005-08-22 Thread Irmen de Jong
John Walton wrote: > Hello, everyone. I just began school, and they > already assigned us science fair. Since I'm in 8th > grade, I get to do demonstrations for our projects. > I'm probably going to demonstrate Python's networking > capabilities by writing a simple instant messenger > program.

Re: network programming

2005-08-22 Thread Steve Holden
Tom Anderson wrote: > On Sun, 21 Aug 2005, John Walton wrote: > > >>Hello, everyone. I just began school, and they already assigned us >>science fair. Since I'm in 8th grade, I get to do demonstrations for >>our projects. I'm probably going to demonstrate Python's networking >>capabilities b

Re: network programming

2005-08-22 Thread Tom Anderson
On Sun, 21 Aug 2005, John Walton wrote: > Hello, everyone. I just began school, and they already assigned us > science fair. Since I'm in 8th grade, I get to do demonstrations for > our projects. I'm probably going to demonstrate Python's networking > capabilities by writing a simple instant

Re: Network Programming Information

2005-08-22 Thread Alessandro Bottoni
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

Re: network programming

2005-08-21 Thread Lucas Raab
John Walton wrote: > Hello, everyone. I just began school, and they > already assigned us science fair. Since I'm in 8th > grade, I get to do demonstrations for our projects. > I'm probably going to demonstrate Python's networking > capabilities by writing a simple instant messenger > program.

Re: network programming

2005-08-21 Thread Steve Holden
John Walton wrote: > Hello, everyone. I just began school, and they > already assigned us science fair. Since I'm in 8th > grade, I get to do demonstrations for our projects. > I'm probably going to demonstrate Python's networking > capabilities by writing a simple instant messenger > program.

Re: network programming

2005-08-21 Thread gene tani
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

Re: network programming without goto (refactoring)

2004-11-29 Thread Sibylle Koczian
Nick Coghlan schrieb: Roy Smith wrote: Jeff Shannon <[EMAIL PROTECTED]> wrote: In Python, exceptions use 'raise', not 'throw'... Doh! I guess it shows that I've been doing a lot of C++ lately :-) Heh. I'm working on a Python test harness that uses a C++ hardware interface module. I keep writing

Re: network programming without goto

2004-11-28 Thread Josiah Carlson
kent sin <[EMAIL PROTECTED]> wrote: > > But that will make too many uncessary connection: > >one connection can do a number of search before it > got timeout, so I want to do as many search as > possible before it got timeout. I think the connection > cost is high here, and it also got some