import time
import string
import LoginParser
import struct
from socket import *
import thread
s.bind(('', 7878))
s.listen(10)
print 'Login Server started on port 7878'
client,addr = s.accept()
cl = "Got a conection from " + str(addr)
print cl
ipaddress = addr[0]
try:
msg = client.recv(1024).split("~~")
p = LoginParser.Start(msg[0],ipaddress)
client.send(p.reply)
except:
pass
try:
client.close()
except:
pass
Danny Sinang
Business Process Reengineering
CONFIDENTIALITY
NOTICE: The contents
of this message, and any attachments transmitted with it, are intended solely
for the use of the addressee and may contain information that is legally
privileged, confidential and prohibited from disclosure. If you are not the
intended recipient, or if you are an agent responsible for delivering this
message to the intended recipient, you are hereby notified that any
dissemination, distribution, copying, or action taken or omitted to be taken in
reliance on it, is unauthorized and may be unlawful. If you have received this
message in error, please notify the sender immediately by replying to this
message and delete the message from your computer. Please note that any views or
opinions presented in this email are solely those of the author and do not
necessarily represent those of the company. Finally, the recipient should check
this email and any attachments for the presence of viruses. The company accepts
no liability for any damage caused by any virus transmitted by this
email.
<<email-publisher.gif>>
-- http://mail.python.org/mailman/listinfo/python-list