Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/c-libs/smlnj-sockets/tbl-sock-type.c
ViewVC logotype

View of /sml/trunk/src/runtime/c-libs/smlnj-sockets/tbl-sock-type.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1489 - (download) (as text) (annotate)
Tue May 11 19:31:06 2004 UTC (15 years, 7 months ago) by mblume
File size: 524 byte(s)
added missing socket-functionality for win32
/* tbl-sock-type.c
 *
 * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
 */

#include "sockets-osdep.h"
#include INCLUDE_SOCKET_H
#include "ml-base.h"
#include "sock-util.h"

/** The table of socket-type names **/
PVT sys_const_t	tbl[] = {
	{SOCK_STREAM,		"STREAM"},
	{SOCK_DGRAM,		"DGRAM"},
#ifdef SOCK_RAW
	{SOCK_RAW,		"RAW"},
#endif
#ifdef SOCK_RDM
	{SOCK_RDM,		"RDM"},
#endif
#ifdef SOCK_SEQPACKET
	{SOCK_SEQPACKET,	"SEQPACKET"},
#endif
    };

sysconst_tbl_t	_Sock_Type = {
	sizeof(tbl) / sizeof(sys_const_t),
	tbl
    };


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0