Fix issues detected by python web-server.
* Removed display of TPL * Added NOP implementation for SO_REUSEADDR * Add better detection of socket address * Return first address Signed-off-by: lpleahy Python Web server below: --------------- import sys import BaseHTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler HandlerClass = SimpleHTTPRequestHandler ServerClass = BaseHTTPServer.HTTPServer Protocol = "HTTP/1.0" port = 80 server_address = ('', port) HandlerClass.protocol_version = Protocol httpd = ServerClass(server_address, HandlerClass) sa = httpd.socket.getsockname() print "Serving HTTP on", sa[0], "port", sa[1], "..." httpd.serve_forever() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13034 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1210,6 +1210,7 @@ EslTcp6LocalAddressSet (
|
||||
// Set the port number
|
||||
//
|
||||
pAccessPoint->StationPort = SwapBytes16 ( pIpAddress->sin6_port );
|
||||
pPort->pSocket->bAddressSet = TRUE;
|
||||
|
||||
//
|
||||
// Display the local address
|
||||
|
Reference in New Issue
Block a user