RCS file: /project/cl-irc/cvsroot/cl-irc/package.lisp,v
retrieving revision 1.11
diff -u -r1.11 package.lisp
|
|
|
18 | 18 | :destructuring-arguments |
19 | 19 | :socket-connect |
20 | 20 | :server-name |
| 21 | :server-port |
| 22 | :password |
21 | 23 | :no-such-reply |
22 | 24 | :irc-mode |
23 | 25 | :boolean-value-mode |
RCS file: /project/cl-irc/cvsroot/cl-irc/protocol.lisp,v
retrieving revision 1.39
diff -u -r1.39 protocol.lisp
|
|
|
114 | 114 | :initarg :server-name |
115 | 115 | :accessor server-name |
116 | 116 | :initform "Unknown server") |
| 117 | (server-port |
| 118 | :initarg :server-port |
| 119 | :accessor server-port |
| 120 | :initform *default-irc-server-port*) |
| 121 | (password |
| 122 | :initarg :password |
| 123 | :accessor password |
| 124 | :initform nil) |
117 | 125 | (network-stream |
118 | 126 | :initarg :network-stream |
119 | 127 | :accessor network-stream |
120 | | :documentation "Stream used to talk to the IRC server.") |
| 128 | :documentation "Stream used to talk binary to the IRC server.") |
| 129 | (input-stream |
| 130 | :initarg :input-stream |
| 131 | :accessor input-stream |
| 132 | :documentation "Stream used to receive messages from the IRC server.") |
121 | 133 | (server-capabilities |
122 | 134 | :initform *default-isupport-values* |
123 | 135 | :accessor server-capabilities |
… |
… |
|
183 | 195 | (defgeneric re-apply-case-mapping (connection)) |
184 | 196 | |
185 | 197 | (defun make-connection (&key (connection-type 'connection) |
186 | | (user nil) |
187 | | (server-name "") |
188 | | (network-stream nil) |
189 | | (client-stream t) |
190 | | (hooks nil)) |
| 198 | (user nil) |
| 199 | (server-name "") |
| 200 | (server-port nil) |
| 201 | (password nil) |
| 202 | (network-stream nil) |
| 203 | (output-stream nil) |
| 204 | (input-stream nil) |
| 205 | (client-stream t) |
| 206 | (hooks nil)) |
191 | 207 | (let ((connection (make-instance connection-type |
192 | | :user user |
193 | | :server-name server-name |
194 | | :network-stream network-stream |
195 | | :client-stream client-stream))) |
| 208 | :user user |
| 209 | :server-name server-name |
| 210 | :server-port server-port |
| 211 | :password password |
| 212 | :network-stream network-stream |
| 213 | :input-stream input-stream |
| 214 | :client-stream client-stream))) |
196 | 215 | (dolist (hook hooks) |
197 | 216 | (add-hook connection (car hook) (cadr hook))) |
198 | 217 | connection)) |