Skip to content

Commit

Permalink
(net) switch .index to .appl-index in order to use .index for private…
Browse files Browse the repository at this point in the history
… store

This should only affect the communication between srv and worker, as there are
protocol commands explicit for requesting the source/appl index of the directory.

FossilOrigin-Name: 8201f5ee92a644ac09dabb3507d69220fadcb14dc7380bea7a4f1a2324cba15c
  • Loading branch information
void committed Dec 6, 2024
1 parent ff94d26 commit 12fe34c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/a12/net/dir_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static void dirlist_to_worker(struct dircl* C)
.category = EVENT_TARGET,
.tgt.kind = TARGET_COMMAND_BCHUNK_IN,
.tgt.ioevs[1].iv = active_clients.dirlist_sz,
.tgt.message = ".index"
.tgt.message = ".appl-index"
}, fd);

close(fd);
Expand Down
2 changes: 1 addition & 1 deletion src/a12/net/dir_srv_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ static void bchunk_event(struct a12_state *S,
a12int_trace(A12_TRACE_DIRECTORY, "bchunk_in:%s", arcan_shmif_eventstr(ev, NULL, 0));

/* the index is packed as shmif argstrs line-separated */
if (strcmp(ev->tgt.message, ".index") == 0){
if (strcmp(ev->tgt.message, ".appl-index") == 0){
unpack_index(S, C, ev);
}
/* Only single channel handled for now, 1:1 source-sink connections. Multiple
Expand Down

0 comments on commit 12fe34c

Please sign in to comment.