The telnet server listens for new connections and once a connection is made a go routine to handle the client is started. When the application is started the configuration information is read in, the database is connected, the HTTP server is started in it's own thread and finally the telnet server is started. It is highly concurrent, implementing go routines, channels, mutexes, and sync Maps for the inter-thread communication. This is a telnet based chat server that allows users to connect and send and receive text based communication.
0 Comments
Leave a Reply. |