MCPcopy Create free account

hub / github.com/buyukakyuz/parlance / functions

Functions161 in github.com/buyukakyuz/parlance

↓ 17 callersMethodupsert
Add or update a peer in the registry
parlance-client/src/core/peer.rs:96
↓ 14 callersMethodparse
Parse a command from user input
parlance-client/src/app/command.rs:43
↓ 10 callersMethodget_all
Get all active peers
parlance-client/src/core/peer.rs:150
↓ 8 callersMethodregister
Registers a new peer and returns the assigned peer ID and public address.
bootstrap-server/src/registry.rs:37
↓ 8 callersFunctiontest_addr
Create a test socket address with a given port
parlance-client/tests/common/mod.rs:8
↓ 6 callersMethodlist_peers
Returns a list of all registered peers.
bootstrap-server/src/registry.rs:96
↓ 5 callersFunctionprocess_message
Processes a client message and returns an optional response.
bootstrap-server/src/server.rs:116
↓ 4 callersMethodremove
(&self, id: &PeerId)
parlance-client/src/core/peer.rs:115
↓ 4 callersMethodremove_timed_out
Remove all timed-out peers
parlance-client/src/core/peer.rs:127
↓ 4 callersMethodsend_message
Sends a message to the bootstrap server.
parlance-client/src/network/bootstrap.rs:124
↓ 4 callersMethodunregister
Unregisters a peer by ID.
bootstrap-server/src/registry.rs:79
↓ 3 callersMethodupdate_heartbeat
Updates the last_seen timestamp for a peer.
bootstrap-server/src/registry.rs:68
↓ 2 callersMethodformat
Format the message for display
parlance-client/src/network/messaging.rs:37
↓ 2 callersMethodget
(&self, id: &PeerId)
parlance-client/src/core/peer.rs:157
↓ 2 callersFunctionhandle_connection
Handles a single WebSocket connection.
bootstrap-server/src/server.rs:67
↓ 2 callersMethodlocal_addr
Get the local address the service is listening on
parlance-client/src/network/messaging.rs:103
↓ 1 callersMethodannounce_interval
Get announcement interval as Duration
parlance-client/src/core/config.rs:123
↓ 1 callersFunctioncleanup_task
Background task that periodically removes stale peers.
bootstrap-server/src/server.rs:191
↓ 1 callersMethodconnect
Connects to the bootstrap server.
parlance-client/src/network/bootstrap.rs:97
↓ 1 callersFunctiondefault_announce_interval_secs
()
parlance-client/src/core/config.rs:196
↓ 1 callersFunctiondefault_bootstrap_server
Default value functions for serde
parlance-client/src/core/config.rs:180
↓ 1 callersFunctiondefault_discovery_peer_timeout_secs
()
parlance-client/src/core/config.rs:188
↓ 1 callersFunctiondefault_heartbeat_interval_secs
()
parlance-client/src/core/config.rs:184
↓ 1 callersFunctiondefault_peer_timeout_secs
()
parlance-client/src/core/config.rs:192
↓ 1 callersMethodget_public_addr
Gets the public address for a peer.
bootstrap-server/src/registry.rs:90
↓ 1 callersMethodis_timed_out
Check if this peer has timed out
parlance-client/src/core/peer.rs:73
↓ 1 callersMethodpeer_timeout
Get peer timeout as Duration
parlance-client/src/core/config.rs:118
↓ 1 callersMethodrefresh
Update the last_seen timestamp
parlance-client/src/core/peer.rs:68
↓ 1 callersMethodregister
Registers with the bootstrap server.
parlance-client/src/network/bootstrap.rs:111
↓ 1 callersMethodremove_stale_peers
Removes peers that have not sent a heartbeat within the timeout period.
bootstrap-server/src/registry.rs:102
↓ 1 callersMethodrequest_peer_list
Requests the peer list from the bootstrap server.
parlance-client/src/network/bootstrap.rs:230
↓ 1 callersMethodrun
Run the application
parlance-client/src/app/mod.rs:58
↓ 1 callersMethodrun_loop
Main event loop for the bootstrap client.
parlance-client/src/network/bootstrap.rs:273
↓ 1 callersMethodsend_message
Send a message to a peer by nickname
parlance-client/src/network/messaging.rs:108
↓ 1 callersMethodspawn_input_handler
Spawn the input handler task
parlance-client/src/app/mod.rs:163
↓ 1 callersMethodupdate_peer_registry
Updates the peer registry with peers from the bootstrap server.
parlance-client/src/network/bootstrap.rs:197
Methodannounce
(&self)
parlance-client/src/network/discovery.rs:115
Methodcount
(&self)
parlance-client/src/core/peer.rs:164
Methoddefault
()
parlance-client/src/core/config.rs:19
Methoddefault
()
parlance-client/src/core/peer.rs:32
Methoddefault
()
bootstrap-server/src/registry.rs:129
Methoddisconnect
Disconnects from the bootstrap server.
parlance-client/src/network/bootstrap.rs:320
Methoderror
Print an error message
parlance-client/src/app/output.rs:23
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
parlance-client/src/core/config.rs:40
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
parlance-client/src/core/peer.rs:38
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
parlance-client/src/app/command.rs:30
Methodfrom
(_: tokio::sync::mpsc::error::SendError<T>)
parlance-client/src/core/error.rs:70
Methodfrom_addr
Create a peer ID from a socket address (deterministic)
parlance-client/src/core/peer.rs:25
Methodfrom_file
Load configuration from a TOML file
parlance-client/src/core/config.rs:105
Methodfrom_str
(s: &str)
parlance-client/src/core/config.rs:27
Methodhandle_connection
Handle an incoming TCP connection
parlance-client/src/network/messaging.rs:144
Methodhandle_message
(&self, data: &[u8], from: SocketAddr)
parlance-client/src/network/discovery.rs:144
Methodhandle_peers_command
Handle the /peers command
parlance-client/src/app/mod.rs:216
Methodhelp_text
Get help text for a command
parlance-client/src/app/command.rs:83
Methodinfo
Print a regular informational message
parlance-client/src/app/output.rs:13
Methodlocal_addr
Returns the local address the server is bound to.
bootstrap-server/src/server.rs:61
Functionmain
()
parlance-client/src/main.rs:44
Functionmain
()
bootstrap-server/src/main.rs:37
Methodmessage_received
Print a message received from a peer
parlance-client/src/app/output.rs:40
Methodnew
Create a new text message
parlance-client/src/network/messaging.rs:28
Methodnew
Creates a new bootstrap client.
parlance-client/src/network/bootstrap.rs:79
Methodnew
Create a new discovery service
parlance-client/src/network/discovery.rs:56
Methodnew
Create a new random peer ID
parlance-client/src/core/peer.rs:20
Methodnew
Create a new config with a nickname and dynamic port
parlance-client/src/app/mod.rs:32
Methodnew
Creates a new PeerInfo instance.
bootstrap-server/src/protocol.rs:67
Methodnew
Creates a new bootstrap server bound to the given address.
bootstrap-server/src/server.rs:24
Methodnew
Creates a new empty peer registry.
bootstrap-server/src/registry.rs:30
Methodpeer_count
Returns the total number of registered peers.
bootstrap-server/src/registry.rs:122
Methodpeer_list
Print the peer list
parlance-client/src/app/output.rs:61
Methodprocess_server_message
Processes a server message.
parlance-client/src/network/bootstrap.rs:170
Methodprompt
Print without a newline and flush
parlance-client/src/app/output.rs:34
Functionrandom_port
Generate a random port number for testing
parlance-client/tests/common/mod.rs:18
Methodreceive_message
Receives and processes a message from the bootstrap server.
parlance-client/src/network/bootstrap.rs:139
Methodrun
Run the messaging service This accepts incoming TCP connections and handles them concurrently.
parlance-client/src/network/messaging.rs:180
Methodrun
Runs the bootstrap client with reconnection logic.
parlance-client/src/network/bootstrap.rs:235
Methodrun
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
Methodrun
Runs the bootstrap server, accepting and handling connections.
bootstrap-server/src/server.rs:35
Methodsend_goodbye
(&self)
parlance-client/src/network/discovery.rs:130
Methodsend_heartbeat
Sends a heartbeat to the bootstrap server.
parlance-client/src/network/bootstrap.rs:225
Functionsend_to_peer
( nickname: &str, to_nickname: &str, content: String, registry: &PeerRegistry, )
parlance-client/src/network/messaging.rs:199
Methodspawn_event_handler
Spawn the event handler task
parlance-client/src/app/mod.rs:227
Methodsuccess
Print a success message
parlance-client/src/app/output.rs:18
Functiontest_addr_with_ip
Create a test socket address with a random IP and given port
parlance-client/tests/common/mod.rs:13
Functiontest_announce_message_deserialization
()
parlance-client/tests/discovery_tests.rs:20
Functiontest_announce_message_serialization
()
parlance-client/tests/discovery_tests.rs:6
Functiontest_bind_error
()
parlance-client/tests/error_tests.rs:16
Functiontest_bootstrap_client_creation
()
parlance-client/src/network/bootstrap.rs:383
Functiontest_bootstrap_client_creation
()
parlance-client/tests/bootstrap_integration_test.rs:19
Functiontest_channel_send_error
()
parlance-client/tests/error_tests.rs:42
Functiontest_client_message_heartbeat_serialization
()
bootstrap-server/src/protocol.rs:113
Functiontest_client_message_list_peers_serialization
()
bootstrap-server/src/protocol.rs:103
Functiontest_client_message_register_serialization
()
bootstrap-server/src/protocol.rs:89
Functiontest_client_message_serialization
()
parlance-client/src/network/bootstrap.rs:335
Functiontest_client_message_unregister_serialization
()
bootstrap-server/src/protocol.rs:123
Functiontest_config_error
()
parlance-client/tests/error_tests.rs:51
Functiontest_contains_newline
()
parlance-client/tests/validation_tests.rs:52
Functiontest_discovery_message_roundtrip
()
parlance-client/tests/discovery_tests.rs:61
Functiontest_discovery_message_with_special_nickname
()
parlance-client/tests/discovery_tests.rs:81
Functiontest_dual_mode_peer_registry
()
parlance-client/tests/bootstrap_integration_test.rs:70
Functiontest_empty_nickname
()
parlance-client/tests/validation_tests.rs:14
next →1–100 of 161, ranked by callers