Commit graph

74 commits

Author SHA1 Message Date
Juan Jose Garcia Ripoll
146b06794c Update the name of the stream mode constants in sockets.lisp 2012-07-08 21:19:11 +02:00
Juan Jose Garcia Ripoll
825fc8cbd3 Cnil and Ct are now part of legacy 2012-06-30 23:01:40 +02:00
Juan Jose Garcia Ripoll
a2c88a372b SOCKET-ACCEPT should return the port as a third value (M. Mondor) 2011-07-31 09:43:35 +02:00
Juan Jose Garcia Ripoll
5918c54f23 Fixed documentation and error string typos (P. Van Eynde) 2011-03-05 15:11:49 +01:00
Juan Jose Garcia Ripoll
02241f886a In sockets.lisp, the stream element type was overriden by a character-mode stream flag. 2011-01-26 14:34:39 +01:00
Juan Jose Garcia Ripoll
e6d180e7df The socket functions now accept an optional :ELEMENT-TYPE keyword argument, in addition to :EXTERNAL-FORMAT 2011-01-24 23:03:14 +01:00
Juan Jose Garcia Ripoll
c591f61d3e The nosignal argument to SOCKET-SEND works now also in BSD systems 2010-10-17 16:50:11 +02:00
Juan Jose Garcia Ripoll
747fddfecf Fixed typo in assertion 2010-05-27 20:05:07 +02:00
Juan Jose Garcia Ripoll
dacffdc468 SERVE-EVENT now allows streams and sockets as arguments, instead of file descriptors. 2010-02-22 15:11:41 +01:00
Juan Jose Garcia Ripoll
d8e828bf35 :EXTERNAL-FORMAT did not work on bi-directional sockets. 2010-02-19 00:22:19 +01:00
Juan Jose Garcia Ripoll
cce95aa087 Missing arguments in function call 2010-02-17 23:55:43 +01:00
Juan Jose Garcia Ripoll
f3fa64c038 Missing argument in call to socket-make-stream-inner. 2010-02-17 22:41:08 +01:00
Juan Jose Garcia Ripoll
3f341b28dd Fix SOCKET-MAKE-STREAM so that it works in Windows. 2010-02-17 20:49:49 +01:00
Juan Jose Garcia Ripoll
1941458e0d In SOCKETS, the stream is created as a two-way stream that automatically closes its components. We also make sure that the file descriptor is duplicated when using both input and output channels and implement new options :INPUT, :OUTPUT and :EXTERNAL-FORMAT for SOCKET-MAKE-STREAM. 2010-02-17 14:49:41 +01:00
Juan Jose Garcia Ripoll
113dd3c2ef When using threads and sockets, the stream is a two-way streams and its components must be closed separately. 2010-02-13 15:35:42 +01:00
Juan Jose Garcia Ripoll
dd4d8e036f Socket streams are now two-way streams. 2010-02-12 18:33:04 +01:00
Juan Jose Garcia Ripoll
b606466993 contrib/sockets/sockets.lisp: Implemente SO_LINGER properly (needs struct linger) (M. Mondor). In Windows, set-sockopt-timeval had the older interface, without the socket level. 2009-10-18 18:51:14 +02:00
Juan Jose Garcia Ripoll
25e7849e2b contrib/sockets/sockets.lisp: two more typos fixed (Chun Tian) 2009-10-17 21:41:51 +02:00
Juan Jose Garcia Ripoll
7d0e542de1 contrib/sockets/sockets.lisp: added a new argument to define-sockopt specifying the level of the interface (SOL_SOCKET or IPPROTO_TCP). 2009-10-17 19:55:35 +02:00
Juanjo
25c9b636e1 contrib/sockets/sockets.lisp: remove unused conditionalization. 2009-10-05 11:00:32 +02:00
Juan Jose Garcia Ripoll
61b7c0ac31 Same reverse fix as before. 2009-08-17 21:25:20 +02:00
Juan Jose Garcia Ripoll
7077608d93 Default buffering mode defaults to NIL (:NONE) so that we do not break code expecting no buffering. Change will be undone at some point in the future. 2009-08-17 20:30:35 +02:00
Juan Jose Garcia Ripoll
413b9561cf Two compatibility improvements in the SOCKETS library:
1) The buffer types :FULL and :LINE are supported.
2) We create an alias called SB-BSD-SOCKETS
2009-08-16 10:49:36 +02:00
Juan Jose Garcia Ripoll
94b43077a6 Replace an invalid comment by a more meaningful one. 2009-07-29 12:29:59 +02:00
Juan Jose Garcia Ripoll
144d25367d Instead of replacing all DEFCONSTANT with DEFPARAMETER, use LET statements to prevent evaluation of the c-inline forms in profile, sockets and serve-event 2009-06-29 14:41:04 +02:00
Juan Jose Garcia Ripoll
f6ff6e4ffc Again, DEFCONSTANT statements cannot contain C-INLINE forms. 2009-06-28 21:43:26 +02:00
Juan Jose Garcia Ripoll
ecf055bc5a Fixes for the Windows port, including a flag to make ANSI C streams the default file type. 2009-03-30 14:42:16 +02:00
Juan Jose Garcia Ripoll
af158f819a CLX registers itself with *MODULES* and requires SOCKETS. Split SOCKETS's package definition into a different file so that CLX can load it before being compiled. 2009-02-24 12:45:54 +01:00
Juan Jose Garcia Ripoll
150398b8b1 Extended strings are now arrays of 32-bit integers. 2009-02-07 19:54:34 +01:00
Juan Jose Garcia Ripoll
9cdbb57dbc Better support for external formats, including the :CR, :LF and :CRLF options. 2009-01-02 16:49:01 +01:00
Juan Jose Garcia Ripoll
c9b36e4005 Merged the new_signals branch. 2008-12-23 12:08:29 +01:00
Juan Jose Garcia Ripoll
035d8779b9 trunc() does not exist in Solaris. 2008-12-22 10:12:35 +01:00
Juan Jose Garcia Ripoll
c331bd2630 We do not use stdio any more, but require the close() function. 2008-12-05 13:54:30 +01:00
Juan Jose Garcia Ripoll
b7f0067ae9 New implementation of lisp streams based on a method dispatch table. 2008-10-19 00:00:58 +02:00
Juan Jose Garcia Ripoll
8a3350f180 Protect the socket library with no-interrupt blocks 2008-10-11 00:28:17 +02:00
Juan Jose Garcia Ripoll
4c1bf9322b This header has to be included always. 2008-08-28 21:21:30 +02:00
Juan Jose Garcia Ripoll
ee6ae69aca Fixed typo in the name of a socket option. 2008-08-02 17:28:39 +02:00
Juan Jose Garcia Ripoll
89db1c7d7f Added option TCP_NODELAY 2008-07-31 10:57:40 +02:00
Juan Jose Garcia Ripoll
8cac166b98 We need sys/time.h for struct timeval. 2008-05-31 15:27:04 +02:00
jjgarcia
f42ca59c92 Accessors for low-level socket timeout attributes (by G. Carncross). 2008-05-31 13:04:07 +00:00
jgarcia
918aab1876 Fixes for building in solaris. 2008-03-05 20:01:55 +00:00
jgarcia
923d08c84b Socket receive routines now check for EAGAIN and EINTR errors (Steve Smith) 2007-10-14 08:04:42 +00:00
jgarcia
61c183c5da Better calculation of buffer size in safe_buffer_pointer 2007-10-13 11:24:09 +00:00
jgarcia
424c2562ee The appropiate header for strerror is string.h 2007-03-28 07:57:52 +00:00
jgarcia
56e95576a2 Not all C compilers allow dynamically initialized arrays. HP Non-Stop platform does not have hstrerror() 2007-03-24 11:19:41 +00:00
jgarcia
9101c3849b Fixed more references to symbols which now carry the ecl_ prefix 2007-01-18 15:01:15 +00:00
jgarcia
af13f2dc3c Need "enum" keyword for the type to be valid C (worked in C++) 2006-09-30 16:48:48 +00:00
jgarcia
049dbfde41 sockets.lisp is now C++ clean. 2006-09-26 08:12:32 +00:00
jgarcia
4464ad2c79 Add more flags which are missing in some platforms. 2006-06-26 07:33:35 +00:00
jgarcia
94e7c62cac Unified the code for string comparison functions. MAKE-SYMBOL now allows extended strings as far as they do not contain extended characters. Fixed typos in socket.lsp. Extended characters are printed with the same number of digits as in CHAR-NAME. 2006-05-29 08:51:37 +00:00