I've compiled the latest EDK2 Python 2.7.2 and included the socket module, but 
I am unable to bind to a socket:

Python 2.7.2 (default, Jan  4 2013, 00:47:13)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on uefi
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.bind(('10.151.255.253',23))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "hd11a0c0b:\Efi\StdLib\lib\python.27/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 49] Can't assign requested address

I get the same error if I try a connect to a remote address/port rather than a 
bind. My network interface is configured:

fs0:\scripts> ifconfig sni0
sni0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.151.255.253 netmask 0xfffc0000 broadcast 10.151.255.255
        ether 00:17:3c:01:d9:60

I can exercise other network functions - ping, ftp.

Any thoughts?

Thanks,

Bill Carroll


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to