Jordan Apgar wrote:
> On Feb 9, 1:51 pm, Jean-Michel Pichavant
[...]
>> you swapped port & hostID in your call
>>
>> JM
>
> tThanks guys it's working now... feel a little stupid though.
Cool!
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, F
On Feb 9, 1:51 pm, Jean-Michel Pichavant
wrote:
> Jordan Apgar wrote:
> > thanks JM,
>
> > at this point i switched over to this scheme and now I'm getting an
> > error durring instantiation of the server:
> > Server.py:
> > from Crypto.PublicKey import RSA
> > from ServerNegotiator import ServerN
Jordan Apgar wrote:
thanks JM,
at this point i switched over to this scheme and now I'm getting an
error durring instantiation of the server:
Server.py:
from Crypto.PublicKey import RSA
from ServerNegotiator import ServerNegotiator
from sharedComs import *
f = open("hostid")
tup = stringToTuple
Argument mismatch?
Jordan Apgar wrote:
servernegotiator = ServerNegotiator(host,HostID, port, key)
class ServerNegotiator:
def __init__(self, host, port, hostid, rsa_key, buf = 512):
--
http://mail.python.org/mailman/listinfo/python-list
thanks JM,
at this point i switched over to this scheme and now I'm getting an
error durring instantiation of the server:
Server.py:
from Crypto.PublicKey import RSA
from ServerNegotiator import ServerNegotiator
from sharedComs import *
f = open("hostid")
tup = stringToTuple(f.readline()[0:-1])
H
Jordan Apgar wrote:
http://docs.python.org/library/socketserver.html
JM
each time a handler is spawned is it client specific? in other words
when two clients send something to the server do handlers spawn for
each of them or does everything just go into a single handler?
docstring of
> http://docs.python.org/library/socketserver.html
>
> JM
each time a handler is spawned is it client specific? in other words
when two clients send something to the server do handlers spawn for
each of them or does everything just go into a single handler?
--
http://mail.python.org/mailman/list
> http://docs.python.org/library/socketserver.html
>
> JM
each time a handler is spawned is it client specific? in other words
when two clients send something to the server do handlers spawn for
each of them or does everything just go into a single handler?
--
http://mail.python.org/mailman/list
Jordan Apgar wrote:
I found my car ;)
here's the server:
class commServer:
"""Class to hold a tcp server and interact with with it
allows for a wrapper around socket class to keep code clean"""
def __init__ (self, host, hostid, port, buff =1024):
self.host = host
se
I found my car ;)
here's the server:
class commServer:
"""Class to hold a tcp server and interact with with it
allows for a wrapper around socket class to keep code clean"""
def __init__ (self, host, hostid, port, buff =1024):
self.host = host
self.hostid = hostid #id
Jordan Apgar wrote:
I have a simple tcp server and client where the server sits and waits
for a message and then processes it, my client sends its first message
to the server. On the server I receive:
socket.error: [Errno 107] Transport endpoint is not connected
when calling
msg = self.socket.r
Jordan Apgar wrote:
> I have a simple tcp server and client where the server sits and waits
> for a message and then processes it, my client sends its first message
> to the server. On the server I receive:
>
> socket.error: [Errno 107] Transport endpoint is not connected
> when calling
> msg = s
I have a simple tcp server and client where the server sits and waits
for a message and then processes it, my client sends its first message
to the server. On the server I receive:
socket.error: [Errno 107] Transport endpoint is not connected
when calling
msg = self.socket.recv(self.buffer)
My c
13 matches
Mail list logo