P2P File Share
A simple peer-to-peer file sharing system.
Loading...
Searching...
No Matches
client.cpp File Reference

The entrypoint to the client. More...

Include dependency graph for client.cpp:

Functions

bool connect_to_tracker (TCPSocket &tracker)
 Attempt to connect to any of the trackers.
 
void loop (const Endpoint &client_endpoint, TCPSocket &tracker, const EndpointID &my_id)
 
int main (int argc, char *argv[])
 Execution starts here.
 

Detailed Description

The entrypoint to the client.

Author
Swastik Pal
Date
2024-10-1

Function Documentation

◆ connect_to_tracker()

bool connect_to_tracker ( TCPSocket & tracker)

Attempt to connect to any of the trackers.

◆ loop()

void loop ( const Endpoint & client_endpoint,
TCPSocket & tracker,
const EndpointID & my_id )

◆ main()

int main ( int argc,
char * argv[] )

Execution starts here.