[Tutor] PyDtls

2013-03-26 Thread Mousumi Basu
I have installed PyDtls from the link:-"
https://pypi.python.org/pypi/Dtls/0.1.0";.
While creating the server and client objects in
"sslconnection.py", it is referring to "x509.py" for certificates.
Following error is occurring :-

File
"C:\dtls\Dtls-0.1.0.sdist_with_openssl.win32\Dtls-0.1.0\dtls\"x509.py",line
34 , in 
from openssl import *
File"C:\dtls\Dtls-0.1.0.sdist_with_openssl.win32\Dtls-0.1.0\dtls\"openssl.py",
line 74 in 

   libcrypto=CDLL(release_cryptodll_path)

File"C:\Python27\lib\ctypes\"_init_.py", line 365,in _init_
  self_.handle=_dlopen(self._name,mode)

WindowsError: [Error 126] The specified module could not be found.


Please help me out to sort that error.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Socket Programming

2013-04-05 Thread Mousumi Basu
I want to perform bind function for  socket programming between two
computers of ip addresses- 172.18.2.11 and 172.18.2.95 using the following
command(on the computer having IP address 172.18.2.95):

s=socket.socket(socket.AF_INIT,socket.SCK_DGRM))
s.bind(('172.18.2.11',8032))

But error is occurring showing "bind not done"

The ping operation of command prompt is showing that the computers are
connected.

Please help me.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Socket Programming

2013-04-08 Thread Mousumi Basu
I want to perform binding between two computers having ip addresses
172.18.2.11 and  172.18.2.95.So i wrote the following code(on the computer
having IP address 172.18.2.95):-


import socket
import sys
s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
try:
s=s.bind(('172.18.2.11',2213))
print 'socket bind is complete'
except socket.error,msg:
print 'bind failed'
sys.exit()


The output is :-
bind failed


but when i am writting;-

s=s.bind(('localhost',2213))

the output is;-
socket bind is complete



Can you please tell me where i am making the error?
(The computers are connected as the ping operation is executing properly in
command prompt)
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor