# Prolog TCP socket communication (reading before writing)

**URL:** <https://swi-prolog.discourse.group/t/prolog-tcp-socket-communication-reading-before-writing/2818>\
**Category:** Help!\
**Created:** [August 23, 2020, 6:46pm UTC](https://swi-prolog.discourse.group/t/prolog-tcp-socket-communication-reading-before-writing/2818 "2020-08-23T18:46:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [August 23, 2020, 6:58pm UTC](https://swi-prolog.discourse.group/t/prolog-tcp-socket-communication-reading-before-writing/2818/2 "2020-08-23T18:58:07Z")

</div>

Searching this site for [chat](https://swi-prolog.discourse.group/search?q=chat) leads to a chat server implemented with Prolog : [https://rosettacode.org/wiki/Chat\_server#Prolog](https://rosettacode.org/wiki/Chat_server#Prolog)

HTH

* * *

Also to quote text as Prolog source code use ` ` ` and not '. See: [Language highlighting](https://swi-prolog.discourse.group/t/language-highlighting/2260)

---

_[View the full topic](https://swi-prolog.discourse.group/t/prolog-tcp-socket-communication-reading-before-writing/2818)._
