Re: [Tutor] Talking to UDPServer: Follow-up

2005-11-02 Thread Carroll, Barry
Greetings: After studying the socket examples and tutorials y'all pointed me to, I settled on Examples 19.3 and 19.4 in Alex Martelli's " Python in a Nutshell" as my starting point. They worked fine, of course, right out of the box. My task now is to extend the client script to handle the command

Re: [Tutor] Talking to UDPServer

2005-11-01 Thread Carroll, Barry
: Tuesday, November 01, 2005 11:39 AM > To: Kent Johnson > Cc: Carroll, Barry; 'tutor@python.org' > Subject: Re: [Tutor] Talking to UDPServer > > I've done some network programming mostly with TCP and I don't think > that the way the client connects to the server is a l

Re: [Tutor] Talking to UDPServer

2005-11-01 Thread Johan Geldenhuys
I've done some network programming mostly with TCP and I don't think that the way the client connects to the server is a lot different (if any), The only difference is when you must decide the protcol family. "socket.SOCK_DGRAM" will be for UDP and "socket.SOCK_STREAM" will be for TCP. After th

Re: [Tutor] Talking to UDPServer

2005-11-01 Thread Kent Johnson
Carroll, Barry wrote: > Yes, that is exactly what I want. I need to write a program that > communicates with an existing server, using the UDP protocol. This is > my first time writing such a program, and I need help getting started. Here is an example from Python Network Programming, by John

Re: [Tutor] Talking to UDPServer

2005-11-01 Thread Carroll, Barry
Geldenhuys [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 5:35 PM To: Carroll, Barry Cc: 'tutor@python.org' Subject: Re: [Tutor] Talking to UDPServer   Maybe you could tel us if you already have the server listening on the socket that you expec connections on? If, yes, do y

Re: [Tutor] Talking to UDPServer

2005-10-31 Thread Johan Geldenhuys
Maybe you could tel us if you already have the server listening on the socket that you expec connections on? If, yes, do you want an example of how a client connects to that socket? Johan Carroll, Barry wrote: Greetings:   I am writing a browser-based interface to a server

Re: [Tutor] Talking to UDPServer

2005-10-31 Thread Kent Johnson
Carroll, Barry wrote: > I am writing a browser-based interface to a server program which extends > SocketServer.UDPServer. The program listens on a well-known socket, > receiving commands, verifying them and using their content to drive our > test hardware, returning status to the client. The