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

StdLib/BsdSocketLib/getpeername.c File Reference

#include <SocketInternals.h>

Go to the source code of this file.

Functions

int getpeername (int s, struct sockaddr *address, socklen_t *address_len)

Detailed Description

Implement the getpeername 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 getpeername.c.


Function Documentation

int getpeername ( int  s,
struct sockaddr address,
socklen_t address_len 
)

Get the remote address

The getpeername routine retrieves the remote system address from the socket.

The POSIX documentation is available online.

Parameters:
[in]sSocket file descriptor returned from socket.
[out]addressNetwork address to receive the remote system address
[in]address_lenLength of the remote network address structure
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 38 of file getpeername.c.

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