Re: [Tutor] Questions Regarding Sockets

2012-04-15 Thread Khalid Al-Ghamdi
Thanks a lot. You've been, as usual, very helpful. On Sat, Apr 14, 2012 at 8:32 PM, Alan Gauld wrote: > On 14/04/12 17:41, Khalid Al-Ghamdi wrote: > > 1- In line (15), what are these variables tcpCliSock,addr supposed to >> hold and do? >> > > The socket object and the IP address of the client t

Re: [Tutor] Questions Regarding Sockets

2012-04-14 Thread Alan Gauld
On 14/04/12 17:41, Khalid Al-Ghamdi wrote: 1- In line (15), what are these variables tcpCliSock,addr supposed to hold and do? The socket object and the IP address of the client that is connecting to the server. When a client connects to a server the server assigns a new temporary socket conn

Re: [Tutor] Questions Regarding Sockets

2012-04-14 Thread Bod Soutar
On 14 April 2012 17:41, Khalid Al-Ghamdi wrote: > Hi All, > > (python 3.2 on windows) > > I have a couple of questions regarding the below code: > > 1- In line (15), what are these variables tcpCliSock, addr supposed to > hold and do? > 2- Why do I have to specify the buffer size and what does it

[Tutor] Questions Regarding Sockets

2012-04-14 Thread Khalid Al-Ghamdi
Hi All, (python 3.2 on windows) I have a couple of questions regarding the below code: 1- In line (15), what are these variables tcpCliSock, addr supposed to hold and do? 2- Why do I have to specify the buffer size and what does it mean? 3- When I try to run the below code and its corresponding