Chat server: Difference between revisions
Content added Content deleted
(Added a sample for D) |
m (→{{header|Go}}: fix minor comment typo) |
||
Line 870: | Line 870: | ||
// the client and passes them to the server for broadcast to all chat |
// the client and passes them to the server for broadcast to all chat |
||
// clients (including us). |
// clients (including us). |
||
// Once done, we ask the server to remove |
// Once done, we ask the server to remove (and close) our connection. |
||
func (c *conn) readloop() { |
func (c *conn) readloop() { |
||
for { |
for { |