1996-09-27 06:29:02 -04:00
|
|
|
|
;;;;
|
|
|
|
|
;;;; s o c k e t . s t k -- Socket module initialisation
|
|
|
|
|
;;;;
|
|
|
|
|
;;;;
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; Copyright <20> 1993-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
|
1996-09-27 06:29:02 -04:00
|
|
|
|
;;;;
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; Permission to use, copy, modify, distribute,and license this
|
|
|
|
|
;;;; software and its documentation for any purpose is hereby granted,
|
|
|
|
|
;;;; provided that existing copyright notices are retained in all
|
|
|
|
|
;;;; copies and that this notice is included verbatim in any
|
|
|
|
|
;;;; distributions. No written agreement, license, or royalty fee is
|
|
|
|
|
;;;; required for any of the authorized uses.
|
|
|
|
|
;;;; This software is provided ``AS IS'' without express or implied
|
|
|
|
|
;;;; warranty.
|
1996-09-27 06:29:02 -04:00
|
|
|
|
;;;;
|
|
|
|
|
;;;;
|
|
|
|
|
;;;; Author: Erick Gallesio [eg@unice.fr]
|
|
|
|
|
;;;; Creation date: 3-Feb-1995 23:59
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; Last file update: 3-Sep-1999 19:54 (eg)
|
1996-09-27 06:29:02 -04:00
|
|
|
|
;;;;
|
|
|
|
|
|
|
|
|
|
(if (symbol-bound? '%init-socket)
|
|
|
|
|
;; Soket module is in the core interpreter
|
|
|
|
|
(%init-socket)
|
|
|
|
|
;; Try to load hash table dynamically
|
|
|
|
|
(load (string-append "socket." *shared-suffix*)))
|
|
|
|
|
|
1999-09-05 07:16:41 -04:00
|
|
|
|
|
|
|
|
|
(when (eq? (os-kind) 'Windows)
|
|
|
|
|
;; Win32 is mostly done in STklos
|
|
|
|
|
(require "winsocket"))
|
|
|
|
|
|
|
|
|
|
|
1996-09-27 06:29:02 -04:00
|
|
|
|
;; For backward compatibility
|
|
|
|
|
(define socket-hostname socket-host-name)
|
|
|
|
|
|
|
|
|
|
(provide "socket")
|