History log of /device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b81cc7d6249671a2c1e36f6c8ac01da0e0b7c612 31-Oct-2014 Olivier Martin <olivier.martin@arm.com> StdLib: Fix more GCC warnings/errors caused by variables being set but not used.

Removed variables that had no effect on code behavior.
Normalized comment formatting.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed by: Daryl McDaniel <daryl.mcdaniel@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16286 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
beaaa3b715381d05c454619a66dd6d27c0b420e5 31-Oct-2014 Olivier Martin <olivier.martin@arm.com> StdLib: Fix more GCC warnings/errors caused by variables being set but not used.

Removed variables that had no effect on code behavior.
Normalized comment formatting.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed by: Daryl McDaniel <daryl.mcdaniel@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16284 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
0164fc8e76b6ca9023c893940ddb00ef0b6bee5a 11-Sep-2014 daryl.mcdaniel <daryl.mcdaniel@intel.com> StdLib: Fix some build problems and obscure bugs.

StdLib\
BsdSocketLib\
ns_print.c
Use "%lu" format instead of "%Lu". A capital 'L' specifies (long double) in print formats.
Add a cast from char to (unsigned int) to match its sprintf format.
res_debug.c
Use "%lu" format instead of "%Lu". A capital 'L' specifies (long double) in print formats.
EfiSocketLib\
Socket.c
Update copyright & correct formatting
Include\
sys\
EfiCdefs.h
Update copyright date
Change type of LONGN and ULONGN to INTN and UINTN, respectively.
errno.h
Update copyright date
Add enum member '__ESUCCESS = 0'
fcntl.h
Update copyright date
Improve comment for O_EXCL
stat.h
Update copyright date
Reorder the S_* flags
Put the S_* predicate macros in the same order as their flag definitions
Add a function header comment to the stat() function declaration.
errno.h
Update copyright date
Define new ESUCCESS error code
wchar.h
Update copyright date
Correct the description of the Nptr parameter to the wcstol, wcstoll, wcstoul, and wcstoull functions.
x86\float.h
Update copyright date
Define 'long double' limits for non-Microsoft compilers
LibC\
Containers\Queues\Fifo.c
Rewrite to make more robust and secure (zeros out old data)
StdLib\realpath.c
Update copyright date
Reformat descriptive comment for realpath()
Add terminating CRLF

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: daryl.mcdaniel@intel.com
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16096 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
eb5b60155a30428c12acd0b2c49b54159a4e55e8 20-Mar-2014 leroy.p.leahy <leroy.p.leahy@intel.com> Fix TCP4/TCP6 connections. Connections were transitioning into the connected state and the polling was returning an error. Fix the polling routine to return success in this case.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: leroy.p.leahy@intel.com
Reviewed-by: SREENIVASULA_REDDY@Dell.com



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15355 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
ceecdc62ab73e5b726630345865a512c780c134e 13-Dec-2013 lpleahy leroy.p.leahy <lpleahy leroy.p.leahy@intel.com> Fix the non-blocking behavior for connect. The behavior was correct if the code polled the connect routine but was not correct when using select to complete the asynchronous request. This change fixes the select case by moving where some of the operations performed upon the connection completion.

Signed-off-by: lpleahy leroy.p.leahy@intel.com
Reviewed-by: Daniel Moura oxesoft@gmail.com


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14984 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
2dc09dd50fe30496efe9922ee6177ed7bdef6bc2 20-Nov-2013 Lee Leahy <leroy.p.leahy@intel.com> Ignore transmit errors for UDPv4, UDPv6 and IPv4.
Support local bind by validating the IP address using the IP configuration protocol.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Ankit Singh3 <Ankit_Singh3@Dell.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14875 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
10e726cf65ea22c0097e62c4b019db6a19e06e68 09-Oct-2012 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> Poll the network adapter during connect

Signed-off-by: lpleahy
Reviewed-by: Dell, Sreenivasula Reddy

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13803 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
4652be0c5a106d0604c2d3274803fc0f844b0433 08-Oct-2012 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> Fixed close for socket to properly release the socket context structure and the handle.

Signed-off-by: lpleahy


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13802 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
884ed923564f35084c45a8f3f132c076b26f2423 10-Sep-2012 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> Modify UDP and IP to transmit on all network adapters instead of just the first network adapter.
Fix comment in Socket.c.

Signed-off-by: lpleahy
Reviewed and tested by: Sreenivasula Reddy of Dell


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13713 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
f74dc4bbba84a07f8c01fea4c43aa77d800ee43c 24-Feb-2012 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> 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
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
28de825561f994ea7923a864ebc54b514edd8af9 16-Feb-2012 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> Bug fix: CreateEvent sometimes returning EFI_INVALID_PARAMETER due to bad TPL value. Use known good TPL value since TPL is a don't care.

Found, reviewed and tested by: Duane Voth
Signed-off-by: lpleahy

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13017 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
3bdf9aae5f7f4c5f47fc8f807ae4409dfe3bdd58 09-Feb-2012 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> Merged socket development branch:
* Fixed bug report (Duane Voth: Python sockets test application not working) by starting the receive operations when a connection is established!
* Increased performance by extending the idle loop into the network stack with the Poll call.
* Added support for TCPv6 (SOCK_STREAM) and UDPv6 (SOCK_DGRAM).
* Added support for getaddrinfo and getnameinfo calls.
* Moved application PCD values into AppPkg

Signed-off-by: lpleahy

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13002 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
58081f2c64fbc2f89ac5a9b47b2643c280bc8f99 01-Oct-2011 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> Fix compilation errors detected with GCC 4.4

Signed-off-by: lpleahy

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12504 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
a88c31639bb24c73383a4528a5b77066e805148b 01-Oct-2011 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> Update the sockets library code
* Passes conformance and functional tests.
* Builds with GCC 4.4 compiler.

Signed-off by: lpleahy


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12497 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
1c34b250f66ba304a4da510404caa827af2ad91e 08-Aug-2011 lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> Better handle transmit errors
Return 0 receive bytes when socket is closed


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12099 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c
d7ce700605e1af0e455e31ec11f19ff21d26b525 30-Jul-2011 darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> Add Socket Libraries.
Add Posix functions for porting compatibility.
Fix compliance issues with ISO/IEC 9899:199409
New Functions:
setenv(), fparseln(), GetFileNameFromPath(), rename(),
realpath(), setprogname(), getprogname(), strlcat(), strlcpy(),
strsep(), setitimer(), getitimer(), timegm(), getopt(), basename(),
mkstemp(), ffs(), vsnprintf(), snprintf(), getpass(), usleep(), select(),
writev(), strcasecmp(), getcwd(), chdir(), tcgetpgrp(), getpgrp(), gettimeofday(),
bcopy(),


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12061 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/Socket.c