Skip to content

Siim/chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

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

No packages published

Languages