emojicode / emojicode

πŸ˜€πŸ˜œπŸ”‚ World’s only programming language that’s bursting with emojis

Home Page:https://emojicode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Program panicked: Unhandled error

aldwnesx opened this issue Β· comments

🀯 Program panicked: Unhandled error at test.emojic:13:11: Broken pipe
Aborted (core dumped)

` Here we’ve an example of a minimal echo-server that listens on port 8728. The server simply sends
back a copy of the data it received.

πŸ“¦ sockets 🏠

πŸ’­ Simple echo server listening on port 8728
🏁 πŸ‡
  πŸΊπŸ†•πŸ„ 8728❗️ ➑️ server

  πŸ” πŸ‘ πŸ‡
    🍺 πŸ™‹ server❗️ ➑️ clientSocket

    πŸ” πŸ‘ πŸ‡
      πŸ†— data πŸ‘‚ clientSocket 50❗️ πŸ‡
        πŸ’­ We’ve read 50 bytes and send them back
        🍺 πŸ’¬ clientSocket data❗️
      πŸ‰
      πŸ™…β€β™€οΈ error πŸ‡πŸ‰
    πŸ‰
  πŸ‰
πŸ‰

Not sure what exactly the error means, any help would be appreciated

commented

Broken pipe is a TCP error that you did not handle on line 13 by using 🍺 instead of performing proper error handling. Please do not use the issue tracker for debugging help.