From 46268a759d4153a779e48dbf232506e7e6e2cbb7 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 31 Aug 1998 04:02:22 +0000 Subject: [PATCH] Use new primitive to map given port numbers to network order. --- v7/src/runtime/socket.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v7/src/runtime/socket.scm b/v7/src/runtime/socket.scm index 078597cac..c8d89b0ef 100644 --- a/v7/src/runtime/socket.scm +++ b/v7/src/runtime/socket.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Id: socket.scm,v 1.11 1997/11/01 19:21:16 cph Exp $ +$Id: socket.scm,v 1.12 1998/08/31 04:02:22 cph Exp $ -Copyright (c) 1990-97 Massachusetts Institute of Technology +Copyright (c) 1990-98 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -92,7 +92,7 @@ MIT in each case. |# (define (tcp-service->port service) (if (exact-nonnegative-integer? service) - service + ((ucode-primitive get-service-by-number 1) service) ((ucode-primitive get-service-by-name 2) service "tcp"))) (define (close-tcp-server-socket server-socket) -- 2.25.1