duckchatstallmaninspired icon indicating copy to clipboard operation
duckchatstallmaninspired copied to clipboard

Refactor server

Open regmicmahesh opened this issue 3 years ago • 3 comments

Refactor server to have a struct named server which holds a conn and number of online users in it, also maintain the number of online users by sending ping to users. the format for ping can be as follows

1:1 Here, 1 denotes server. and another 1 denotes ping message.

this should be discarded by client.

regmicmahesh avatar Feb 10 '22 13:02 regmicmahesh

also client should not reply to this ping message as the sole purpose of ping is to identify if tcp socket is alive or not.

regmicmahesh avatar Feb 10 '22 13:02 regmicmahesh

Mostly done remaining task is to show list of online users.

regmicmahesh avatar Feb 11 '22 04:02 regmicmahesh

I'm looking for channels alternatives in servers to handle broadcasts.

regmicmahesh avatar Feb 12 '22 05:02 regmicmahesh