Commit Graph

31 Commits

Author SHA1 Message Date
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
mainzelm 6a80f8df7c Fixed return value of accept for AF_UNIX. 2002-04-28 18:26:44 +00:00
mainzelm 1b2096cfb4 Cancel some unnecessary GC_PROTECTs. 2002-02-14 14:00:27 +00:00
steven-jenkins 94d5ae9f71 GC_PROTECT'ed the necessary variables (specifically, where >1 arg to
a function 'may GC')
2002-02-12 15:49:39 +00:00
mainzelm 2da600ffbb Replaced // comments. 2002-01-11 10:13:58 +00:00
mainzelm 30187cf93f Replace s48_raise_string_os_error by s48_raise_string_os_error_X
for compatibility with import-os-error.
2002-01-10 10:08:14 +00:00
sperber b5180b35af Make naming consistent with current Scheme 48:
argtype -> argument_type
argnumber -> argument_number
2001-12-03 15:19:48 +00:00
mainzelm a2eb80d3fe Check string-length of bind-socket in Scheme. 2001-09-17 18:23:30 +00:00
mainzelm fa78232f3d Removed remaining define-foreign. Network code is cig-less now. 2001-08-08 11:54:04 +00:00
mainzelm 3699917f70 + Added missing "unsigned" to make_addr.
+ Removed 0.5's cast to long for port number.
2001-07-07 19:32:51 +00:00
mainzelm 4659f69310 Zero all sockaddr_XX. 2001-06-21 08:22:18 +00:00
mainzelm 8c724fb65f Fixed #408425 by zeroing sockaddr_in before usage.
Minor clean-up for new FFI.
Maybe useless cast to unsigned in host_ent2host_info .
2001-06-20 16:01:20 +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 3a8546df55 Fixed name clash on solaris. 2000-12-21 17:01:05 +00:00
mainzelm b8c0e87293 Remove extern declaration of h_errno since AIX defines it as (*(int *)h_errno_which()). 2000-12-21 15:44:57 +00:00
mainzelm b0d994b43c Build fixes for irix and hpux. 2000-12-20 08:31:06 +00:00
marting 5cca147350 Fixed bug due to the fact that byte_vector_ref returns a signed char. 2000-08-28 13:02:09 +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 d0b3f61ccd Better type annotations. Moved char_pp_2_sting_list to cstuff.c. 2000-05-16 09:24:54 +00:00
marting f81441cf2a adapted types 1999-11-04 17:46:51 +00:00
marting 1f6fba80ba inserted s48-extract-string, but there are still man hacks hidden inside, it's a miracle that anything of this stuff works 1999-10-08 18:19:37 +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