EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions

StdLib/BsdSocketLib/getsockopt.c File Reference

#include <SocketInternals.h>

Go to the source code of this file.

Functions

int getsockopt (IN int s, IN int level, IN int option_name, OUT void *__restrict option_value, IN OUT socklen_t *__restrict option_len)

Detailed Description

Implement the getsockopt API.

Copyright (c) 2011, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file getsockopt.c.


Function Documentation

int getsockopt ( IN int  s,
IN int  level,
IN int  option_name,
OUT void *__restrict  option_value,
IN OUT socklen_t *__restrict  option_len 
)

Get the socket options

The POSIX documentation is available online.

Parameters:
[in]sSocket file descriptor returned from socket.
[in]levelOption protocol level
[in]option_nameName of the option
[out]option_valueBuffer to receive the option value
[in,out]option_lenLength of the buffer in bytes, upon return length of the option value in bytes
Returns:
This routine returns zero (0) if successful or -1 when an error occurs. In the case of an error, errno contains more details.

Definition at line 37 of file getsockopt.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines