Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buyukakyuz/parlance
/ functions
Functions
161 in github.com/buyukakyuz/parlance
⨍
Functions
161
◇
Types & classes
36
↓ 17 callers
Method
upsert
Add or update a peer in the registry
parlance-client/src/core/peer.rs:96
↓ 14 callers
Method
parse
Parse a command from user input
parlance-client/src/app/command.rs:43
↓ 10 callers
Method
get_all
Get all active peers
parlance-client/src/core/peer.rs:150
↓ 8 callers
Method
register
Registers a new peer and returns the assigned peer ID and public address.
bootstrap-server/src/registry.rs:37
↓ 8 callers
Function
test_addr
Create a test socket address with a given port
parlance-client/tests/common/mod.rs:8
↓ 6 callers
Method
list_peers
Returns a list of all registered peers.
bootstrap-server/src/registry.rs:96
↓ 5 callers
Function
process_message
Processes a client message and returns an optional response.
bootstrap-server/src/server.rs:116
↓ 4 callers
Method
remove
(&self, id: &PeerId)
parlance-client/src/core/peer.rs:115
↓ 4 callers
Method
remove_timed_out
Remove all timed-out peers
parlance-client/src/core/peer.rs:127
↓ 4 callers
Method
send_message
Sends a message to the bootstrap server.
parlance-client/src/network/bootstrap.rs:124
↓ 4 callers
Method
unregister
Unregisters a peer by ID.
bootstrap-server/src/registry.rs:79
↓ 3 callers
Method
update_heartbeat
Updates the last_seen timestamp for a peer.
bootstrap-server/src/registry.rs:68
↓ 2 callers
Method
format
Format the message for display
parlance-client/src/network/messaging.rs:37
↓ 2 callers
Method
get
(&self, id: &PeerId)
parlance-client/src/core/peer.rs:157
↓ 2 callers
Function
handle_connection
Handles a single WebSocket connection.
bootstrap-server/src/server.rs:67
↓ 2 callers
Method
local_addr
Get the local address the service is listening on
parlance-client/src/network/messaging.rs:103
↓ 1 callers
Method
announce_interval
Get announcement interval as Duration
parlance-client/src/core/config.rs:123
↓ 1 callers
Function
cleanup_task
Background task that periodically removes stale peers.
bootstrap-server/src/server.rs:191
↓ 1 callers
Method
connect
Connects to the bootstrap server.
parlance-client/src/network/bootstrap.rs:97
↓ 1 callers
Function
default_announce_interval_secs
()
parlance-client/src/core/config.rs:196
↓ 1 callers
Function
default_bootstrap_server
Default value functions for serde
parlance-client/src/core/config.rs:180
↓ 1 callers
Function
default_discovery_peer_timeout_secs
()
parlance-client/src/core/config.rs:188
↓ 1 callers
Function
default_heartbeat_interval_secs
()
parlance-client/src/core/config.rs:184
↓ 1 callers
Function
default_peer_timeout_secs
()
parlance-client/src/core/config.rs:192
↓ 1 callers
Method
get_public_addr
Gets the public address for a peer.
bootstrap-server/src/registry.rs:90
↓ 1 callers
Method
is_timed_out
Check if this peer has timed out
parlance-client/src/core/peer.rs:73
↓ 1 callers
Method
peer_timeout
Get peer timeout as Duration
parlance-client/src/core/config.rs:118
↓ 1 callers
Method
refresh
Update the last_seen timestamp
parlance-client/src/core/peer.rs:68
↓ 1 callers
Method
register
Registers with the bootstrap server.
parlance-client/src/network/bootstrap.rs:111
↓ 1 callers
Method
remove_stale_peers
Removes peers that have not sent a heartbeat within the timeout period.
bootstrap-server/src/registry.rs:102
↓ 1 callers
Method
request_peer_list
Requests the peer list from the bootstrap server.
parlance-client/src/network/bootstrap.rs:230
↓ 1 callers
Method
run
Run the application
parlance-client/src/app/mod.rs:58
↓ 1 callers
Method
run_loop
Main event loop for the bootstrap client.
parlance-client/src/network/bootstrap.rs:273
↓ 1 callers
Method
send_message
Send a message to a peer by nickname
parlance-client/src/network/messaging.rs:108
↓ 1 callers
Method
spawn_input_handler
Spawn the input handler task
parlance-client/src/app/mod.rs:163
↓ 1 callers
Method
update_peer_registry
Updates the peer registry with peers from the bootstrap server.
parlance-client/src/network/bootstrap.rs:197
Method
announce
(&self)
parlance-client/src/network/discovery.rs:115
Method
count
(&self)
parlance-client/src/core/peer.rs:164
Method
default
()
parlance-client/src/core/config.rs:19
Method
default
()
parlance-client/src/core/peer.rs:32
Method
default
()
bootstrap-server/src/registry.rs:129
Method
disconnect
Disconnects from the bootstrap server.
parlance-client/src/network/bootstrap.rs:320
Method
error
Print an error message
parlance-client/src/app/output.rs:23
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
parlance-client/src/core/config.rs:40
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
parlance-client/src/core/peer.rs:38
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
parlance-client/src/app/command.rs:30
Method
from
(_: tokio::sync::mpsc::error::SendError<T>)
parlance-client/src/core/error.rs:70
Method
from_addr
Create a peer ID from a socket address (deterministic)
parlance-client/src/core/peer.rs:25
Method
from_file
Load configuration from a TOML file
parlance-client/src/core/config.rs:105
Method
from_str
(s: &str)
parlance-client/src/core/config.rs:27
Method
handle_connection
Handle an incoming TCP connection
parlance-client/src/network/messaging.rs:144
Method
handle_message
(&self, data: &[u8], from: SocketAddr)
parlance-client/src/network/discovery.rs:144
Method
handle_peers_command
Handle the /peers command
parlance-client/src/app/mod.rs:216
Method
help_text
Get help text for a command
parlance-client/src/app/command.rs:83
Method
info
Print a regular informational message
parlance-client/src/app/output.rs:13
Method
local_addr
Returns the local address the server is bound to.
bootstrap-server/src/server.rs:61
Function
main
()
parlance-client/src/main.rs:44
Function
main
()
bootstrap-server/src/main.rs:37
Method
message_received
Print a message received from a peer
parlance-client/src/app/output.rs:40
Method
new
Create a new text message
parlance-client/src/network/messaging.rs:28
Method
new
Creates a new bootstrap client.
parlance-client/src/network/bootstrap.rs:79
Method
new
Create a new discovery service
parlance-client/src/network/discovery.rs:56
Method
new
Create a new random peer ID
parlance-client/src/core/peer.rs:20
Method
new
Create a new config with a nickname and dynamic port
parlance-client/src/app/mod.rs:32
Method
new
Creates a new PeerInfo instance.
bootstrap-server/src/protocol.rs:67
Method
new
Creates a new bootstrap server bound to the given address.
bootstrap-server/src/server.rs:24
Method
new
Creates a new empty peer registry.
bootstrap-server/src/registry.rs:30
Method
peer_count
Returns the total number of registered peers.
bootstrap-server/src/registry.rs:122
Method
peer_list
Print the peer list
parlance-client/src/app/output.rs:61
Method
process_server_message
Processes a server message.
parlance-client/src/network/bootstrap.rs:170
Method
prompt
Print without a newline and flush
parlance-client/src/app/output.rs:34
Function
random_port
Generate a random port number for testing
parlance-client/tests/common/mod.rs:18
Method
receive_message
Receives and processes a message from the bootstrap server.
parlance-client/src/network/bootstrap.rs:139
Method
run
Run the messaging service This accepts incoming TCP connections and handles them concurrently.
parlance-client/src/network/messaging.rs:180
Method
run
Runs the bootstrap client with reconnection logic.
parlance-client/src/network/bootstrap.rs:235
Method
run
Run the discovery service This function runs two concurrent tasks: 1. Periodically announce our presence 2. Listen for announcements from other peers
parlance-client/src/network/discovery.rs:173
Method
run
Runs the bootstrap server, accepting and handling connections.
bootstrap-server/src/server.rs:35
Method
send_goodbye
(&self)
parlance-client/src/network/discovery.rs:130
Method
send_heartbeat
Sends a heartbeat to the bootstrap server.
parlance-client/src/network/bootstrap.rs:225
Function
send_to_peer
( nickname: &str, to_nickname: &str, content: String, registry: &PeerRegistry, )
parlance-client/src/network/messaging.rs:199
Method
spawn_event_handler
Spawn the event handler task
parlance-client/src/app/mod.rs:227
Method
success
Print a success message
parlance-client/src/app/output.rs:18
Function
test_addr_with_ip
Create a test socket address with a random IP and given port
parlance-client/tests/common/mod.rs:13
Function
test_announce_message_deserialization
()
parlance-client/tests/discovery_tests.rs:20
Function
test_announce_message_serialization
()
parlance-client/tests/discovery_tests.rs:6
Function
test_bind_error
()
parlance-client/tests/error_tests.rs:16
Function
test_bootstrap_client_creation
()
parlance-client/src/network/bootstrap.rs:383
Function
test_bootstrap_client_creation
()
parlance-client/tests/bootstrap_integration_test.rs:19
Function
test_channel_send_error
()
parlance-client/tests/error_tests.rs:42
Function
test_client_message_heartbeat_serialization
()
bootstrap-server/src/protocol.rs:113
Function
test_client_message_list_peers_serialization
()
bootstrap-server/src/protocol.rs:103
Function
test_client_message_register_serialization
()
bootstrap-server/src/protocol.rs:89
Function
test_client_message_serialization
()
parlance-client/src/network/bootstrap.rs:335
Function
test_client_message_unregister_serialization
()
bootstrap-server/src/protocol.rs:123
Function
test_config_error
()
parlance-client/tests/error_tests.rs:51
Function
test_contains_newline
()
parlance-client/tests/validation_tests.rs:52
Function
test_discovery_message_roundtrip
()
parlance-client/tests/discovery_tests.rs:61
Function
test_discovery_message_with_special_nickname
()
parlance-client/tests/discovery_tests.rs:81
Function
test_dual_mode_peer_registry
()
parlance-client/tests/bootstrap_integration_test.rs:70
Function
test_empty_nickname
()
parlance-client/tests/validation_tests.rs:14
next →
1–100 of 161, ranked by callers