-
Notifications
You must be signed in to change notification settings - Fork 0
Siim/chat
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
TODO: - GUI - Check if name is available - Url functions: urlencode, urldecode - Better data records (received message, composed message) Also put records to header file(s) - Definitions to header file? - Makefile - Request handling Handle sendmessage Handle findname Handle sendname Handle sendnames (using json list [["name","ip:port"],["name2","ip2:port2"]]) - Send message to another peer (using erlang http client BIF) sendmessage findname sendname sendnames - sendmessage functions send_message(Txt, To) To = ["Name","IP"] send_message(#composed_message) ... Simple P2P chat - Uses HTTP protocol - Uses GET method sendmessage (from another peer) http://peer:port/chat/sendmessage?message=&myname=&myip= findname http://peer:port/chat/findname?name=&myname=&myip=&ttl= asknames (sends names back via same socket) http://peer:port/chat/asknames?ttl= sendname (send my name to other peer OR peer from my json file) http://peer:port/chat/sendname?name&ip=&ttl=
About
P2P chat using HTTP
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published