Overview
Comment: | wip. rmt:get-keys now works |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v2.0001 |
Files: | files | file ages | folders |
SHA1: |
3541d273024fdbc321c99db6102d0aa7 |
User & Date: | matt on 2022-01-03 17:38:33 |
Other Links: | branch diff | manifest | tags |
Context
2022-01-03
| ||
18:24 | wip, more tests passing check-in: 3333a49fd4 user: matt tags: v2.0001 | |
17:38 | wip. rmt:get-keys now works check-in: 3541d27302 user: matt tags: v2.0001 | |
12:01 | main.db and <run>.db servers working with ulex check-in: 2f2d804be0 user: matt tags: v2.0001 | |
Changes
Modified rmtmod.scm from [77a44ba5d3] to [708190534e].
︙ | |||
198 199 200 201 202 203 204 | 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | - + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + | ;; ;; TODO: This is unnecessarily re-creating the record in the hash table ;; (define (rmt:open-main-connection remdat apath) (let* ((fullpath (db:dbname->path apath "/.db/main.db")) (conns (servdat-conns remdat)) (conn (hash-table-ref/default conns fullpath #f)) ;; TODO - create call for this |
︙ | |||
334 335 336 337 338 339 340 | 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 | - - - - + - - - - - - - - + | ;; (define *localmode* #t) (define *localmode* #f) (define *dbstruct* (make-dbr:dbstruct)) ;; Defaults to current area ;; (define (rmt:send-receive cmd rid params #!key (attemptnum 1)(area-dat #f)) |
︙ | |||
1796 1797 1798 1799 1800 1801 1802 | 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 | - - - + + + + | (define (server-ready? uconn host-port key) ;; server-address is host:port (let* ((params `((cmd . ping)(key . ,key))) (data `((cmd . ping) (key . ,key) (params . ,params))) ;; I don't get it. (res (send-receive uconn host-port 'ping data))) |
︙ |
Modified tests/unittests/basicserver.scm from [eb62de6943] to [d569827954].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - + - + - - + + | (import rmtmod trace http-client apimod dbmod launchmod srfi-69 ulex system-information) (trace-call-sites #t) (trace ;; get-the-server ;; db:get-dbdat |
︙ | |||
77 78 79 80 81 82 83 | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | - + - - - - - - - - - - - - - - - + - + - - | ;; switch to *db-serv-info* instead of *servdat* (define *uconn* (servdat-uconn *db-serv-info*)) (print "*uconn*: " *uconn*) (test #f #t (ulex-listener? (servdat-uconn *db-serv-info*))) (test #f #t (string? (udat-host-port *uconn*))) (run-in-thread |
Modified ulex/ulex.scm from [5cd5e6659a] to [5f309c38c1].
︙ | |||
208 209 210 211 212 213 214 | 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + | (close-output-port oup) res)))))) ;; res will always be 'ack ;; send a request to the given host-port and register a mailbox in udata ;; wait for the mailbox data and return it ;; (define (send-receive uconn host-port cmd data) (cond ((member cmd '(ping goodbye)) ;; these are immediate (send uconn host-port 'ping cmd data)) (else |
︙ |