Commit Graph

37 Commits

Author SHA1 Message Date
mainzelm 5cd0763723 In socket-option operator and operand were swapped two times. 2003-01-07 10:51:28 +00:00
mainzelm a3332290c6 port->socket now dups both ports. This is also documented. 2002-12-11 10:01:01 +00:00
mainzelm 21364665ee Introduced connect-socket-no-wait and connect-socket-successful?. 2002-11-22 12:26:08 +00:00
sperber a73f146a23 Change CONNECT-SOCKET to pass underlying file descriptor to SELECT to
prevent SELECT non-blocking because there's space in the buffer.
2002-11-12 13:14:44 +00:00
mainzelm 8900f05fd2 call select in connect only on EINPROGRESS, loop on other errors
(which should not happend anyway according to POSIX).
2002-10-31 09:51:48 +00:00
mainzelm bcd64a2b3a + Use select on socket:outport if connect returned EINPROGRESS.
+ Clearer return values for %connect: return a pair that indicates
  whether an recoverable error occured and if this error was EINPROGRESS
  or something else.
2002-10-30 13:12:00 +00:00
sperber c7e49f9274 Rework CONNECT-SOCKET to use SELECT.
Note: this is presently broken because of a wrong input-port/output
port classification of the port passed into SELECT.
2002-10-30 12:01:19 +00:00
sperber 7fdde2527f Plug space leak in BIND-LISTEN-ACCEPT-LOOK: Errno handlers for failed
connections would accumulate indefinitely.
2002-03-06 08:24:32 +00:00
mainzelm 4d28e2bb33 /kick mainzelM 2002-02-13 08:51:01 +00:00
mainzelm 3662ea8d88 Fixed bug in bind-socket. 2002-02-13 08:28:59 +00:00
mainzelm cad703672f Appropriate error message if retrying connect failed. 2002-01-23 15:06:08 +00:00
sperber fbb912c9eb Pass SYSCALL argument to ERRNO-ERROR. 2002-01-10 12:29:36 +00:00
mainzelm 4f91395748 Fixed bug caused by forgotten parentheses. 2001-10-09 19:45:31 +00:00
mainzelm a2eb80d3fe Check string-length of bind-socket in Scheme. 2001-09-17 18:23:30 +00:00
mainzelm b30eed8d54 + Replaced define-stubless-foreign by import-lambda-definition or
import-os-error-syscall
+ Removed loading of cig-aux and define-foreign
2001-09-13 07:59:40 +00:00
mainzelm ebd33706cc Use import-os-error-syscall to convert from os-error to syscall-error. 2001-09-12 14:08:24 +00:00
mainzelm db5116e44a Removed forgotten cig stuff. 2001-08-08 12:53:24 +00:00
mainzelm fa78232f3d Removed remaining define-foreign. Network code is cig-less now. 2001-08-08 11:54:04 +00:00
mainzelm a7227450ca Removed call/cc from handler of bind-listen-accept-loop: We want to
close the socket, but not prevent the exception to come through
(Otherwise you get 'interrupted on undefined globals...).
2001-07-10 11:26:54 +00:00
uid35759 7228fc0e82 BIND-LISTEN-ACCEPT-LOOP: Close the socket when interrupted. 2001-07-04 11:54:41 +00:00
uid35759 9db99b091c Ignore ERRNO/CONNABORTED in BIND-LISTEN-ACCEPT-LOOP. 2001-07-04 11:26:15 +00:00
mainzelm dcc88cce36 Renamed fd->socket to port->socket and added better checking for being a socket. 2001-06-20 16:12:40 +00:00
mainzelm 7516a430f8 Switched back to integers as internet-host-addresses. 2001-04-02 14:57:25 +00:00
mainzelm 07f9cbc6c9 Port to new FFI. 2001-01-01 17:34:08 +00:00
mainzelm e3f2877ab9 added internet-address->dotted-string 2000-09-24 20:51:04 +00:00
marting 50664556eb Procedures to convert numbers and bytes to
internet-host-addresses. Added fd->port. Small bug-fixes.
2000-07-27 13:38:35 +00:00
marting 27bafee1bc Shifted receive/send-message to non-blocking sockets. 2000-07-14 16:30:02 +00:00
marting 1154aad830 Moved host/network/service/protocol-info to new FFI. Fixed some bugs
in the old implementation.
2000-07-13 13:45:00 +00:00
marting 86fa3f59a4 Moved host-info to new address representation. The record is constructed in C now. 2000-07-12 17:28:56 +00:00
marting 52291acc0e Connect can now handle non-blocking sockets that return EINPROGRESS. 2000-07-11 10:30:23 +00:00
marting f095b068a8 connect for non-blocking sockets. Untested code. 2000-07-10 18:32:45 +00:00
marting fd69c40875 made sockets non/blocking. accept adds a non-ready fd to vm-queue and waits. Copied from socket.c. Maybe connect has to follow. 2000-07-10 18:01:53 +00:00
marting f81441cf2a adapted types 1999-11-04 17:46:51 +00:00
marting b5771115b6 changes to get the 0.5.2 stuff running. Not yet completed, hangs on startup 1999-09-23 23:02:54 +00:00
marting 0f0fe9f2ff updates from 0.5.2 1999-09-23 17:46:46 +00:00
marting d2fc94c2da replaced all the macros and definitions that have changed in c/scheme48.h. Sometimes changes were necessary, if stuff is no longer a l-value. Some things are just commented out to be able to compile 1999-09-16 00:20:37 +00:00
marting 09136048ae Added files from david fishers home (~dfisher/scsh-0.5.1).
Be warned: the scsh-version he started from was neither 0.5.1 nor
0.5.2, but something in between !
1999-09-14 13:32:05 +00:00