epoc32/include/libc/sys/socket.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
     1.1 --- a/epoc32/include/libc/sys/socket.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/libc/sys/socket.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,9 +1,9 @@
     1.4  // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5  // All rights reserved.
     1.6  // This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 +// under the terms of "Eclipse Public License v1.0"
     1.9  // which accompanies this distribution, and is available
    1.10 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.12  //
    1.13  // Initial Contributors:
    1.14  // Nokia Corporation - initial contribution.
    1.15 @@ -13,8 +13,6 @@
    1.16  // Description:
    1.17  //
    1.18  
    1.19 -
    1.20 -
    1.21  /**
    1.22   @file
    1.23   @publishedAll
    1.24 @@ -29,39 +27,39 @@
    1.25  #ifdef	__cplusplus
    1.26  extern "C" {
    1.27  #endif
    1.28 -
    1.29 +#include <sys/types.h>
    1.30  /*
    1.31  Types - may be extended by individual protocols
    1.32  */
    1.33 -#define	SOCK_STREAM	1		///< stream socket
    1.34 -#define	SOCK_DGRAM	2		///< datagram socket
    1.35 -#define	SOCK_SEQPACKET	3	///< sequenced packet stream
    1.36 -#define	SOCK_RAW	4		///< raw-protocol interface
    1.37 +#define	SOCK_STREAM	1		//< stream socket
    1.38 +#define	SOCK_DGRAM	2		//< datagram socket
    1.39 +#define	SOCK_SEQPACKET	3	//< sequenced packet stream
    1.40 +#define	SOCK_RAW	4		//< raw-protocol interface
    1.41  
    1.42  /*
    1.43  Options for use with [gs]etsockopt at the socket level.
    1.44  Note: Symbian OS setsockopt() ignores the options with values <= 0.
    1.45  */
    1.46 -#define	SOL_SOCKET	1		///< options for socket level
    1.47 +#define	SOL_SOCKET	1		//< options for socket level
    1.48  
    1.49 -#define	SO_DEBUG	1		///< turn on debugging info recording
    1.50 -#define	SO_RCVBUF	2		///< receive buffer size
    1.51 -#define	SO_SNDBUF	3		///< send buffer size
    1.52 -#define	SO_ERROR	9		///< get error status and clear
    1.53 -#define	SO_REUSEADDR	0x406		///< reuse local addresses
    1.54 -#define	SO_BROADCAST	-1	///< permit sending of broadcast msgs, not supported in Symbian OS
    1.55 -#define	SO_USELOOPBACK	-2	///< bypass hardware when possible, not supported in Symbian OS
    1.56 -#define	SO_LINGER	    -3  ///< linger on close if data present, not supported in Symbian OS
    1.57 -#define	SO_OOBINLINE	-4	///< leave received OOB data in line, not supported in Symbian OS
    1.58 +#define	SO_DEBUG	1		//< turn on debugging info recording
    1.59 +#define	SO_RCVBUF	2		//< receive buffer size
    1.60 +#define	SO_SNDBUF	3		//< send buffer size
    1.61 +#define	SO_ERROR	9		//< get error status and clear
    1.62 +#define	SO_REUSEADDR	0x406		//< reuse local addresses
    1.63 +#define	SO_BROADCAST	-1	//< permit sending of broadcast msgs, not supported in Symbian OS
    1.64 +#define	SO_USELOOPBACK	-2	//< bypass hardware when possible, not supported in Symbian OS
    1.65 +#define	SO_LINGER	    -3  //< linger on close if data present, not supported in Symbian OS
    1.66 +#define	SO_OOBINLINE	-4	//< leave received OOB data in line, not supported in Symbian OS
    1.67  
    1.68  /*
    1.69  Address families - for EPOC32 these are based on the protocol IDs.
    1.70  */
    1.71 -#define	AF_UNSPEC	0		///< unspecified
    1.72 -#define	AF_LOCAL	0x666	///< local to host (pipes)
    1.73 -#define	AF_INET		0x0800	///< internetwork: UDP, TCP, etc.
    1.74 -#define	AF_IRDA		0x0100	///< IrDA
    1.75 -#define AF_PLP		273		///< Symbian link protocol
    1.76 +#define	AF_UNSPEC	0		//< unspecified
    1.77 +#define	AF_LOCAL	0x666	//< local to host (pipes)
    1.78 +#define	AF_INET		0x0800	//< internetwork: UDP, TCP, etc.
    1.79 +#define	AF_IRDA		0x0100	//< IrDA
    1.80 +#define AF_PLP		273		//< Symbian link protocol
    1.81  
    1.82  /*
    1.83  Protocol families, same as address families
    1.84 @@ -83,10 +81,10 @@
    1.85  	char	sa_data[24];		/* up to 24 bytes of direct address */
    1.86  };
    1.87  
    1.88 -#define	SOMAXCONN	5 ///< Maximum queue length specifiable by listen
    1.89 +#define	SOMAXCONN	5 //< Maximum queue length specifiable by listen
    1.90  
    1.91 -#define	MSG_PEEK	1 ///< peek at incoming message
    1.92 -#define	MSG_OOB		1 ///< write out-of-band data
    1.93 +#define	MSG_PEEK	1 //< peek at incoming message
    1.94 +#define	MSG_OOB		1 //< write out-of-band data
    1.95  
    1.96  IMPORT_C int accept(int, struct sockaddr *, size_t *);
    1.97  IMPORT_C int bind(int, struct sockaddr *, size_t);