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

SCM Repository

[smlnj] Annotation of /sml/trunk/src/runtime/c-libs/smlnj-sockets/listen.c
ViewVC logotype

Annotation of /sml/trunk/src/runtime/c-libs/smlnj-sockets/listen.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1489 - (view) (download) (as text)

1 : monnier 249 /* listen.c
2 :     *
3 :     * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
4 :     */
5 :    
6 :     #include "sockets-osdep.h"
7 :     #include INCLUDE_SOCKET_H
8 :     #include "ml-base.h"
9 :     #include "ml-values.h"
10 :     #include "ml-c.h"
11 :     #include "cfun-proto-list.h"
12 :    
13 :     /* _ml_Sock_listen : (sock * int) -> unit
14 :     */
15 :     ml_val_t _ml_Sock_listen (ml_state_t *msp, ml_val_t arg)
16 :     {
17 :     int sock = REC_SELINT(arg, 0);
18 :     int backlog = REC_SELINT(arg, 1);
19 :     int sts;
20 :    
21 :     sts = listen (sock, backlog);
22 :    
23 :     CHK_RETURN_UNIT(msp, sts);
24 :    
25 :     } /* end of _ml_Sock_listen */

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