jmrapp1 / NitroNet

A networking library used to simplify the development of applications that require some form of networking. It is multiplatform, supports UDP and TCP, encryption of packets, packet corruption handling, packet streaming, SQL support, and much more.
40 stars 7 forks source link

How do I close a server in nitronet? #4

Closed KittyCatCode closed 8 years ago

KittyCatCode commented 9 years ago

I'm making a very simple server GUI, with a status at the top, and off and on buttons at the bottom. However, when I started making the listener for the off button, there didn't seem to be a method to close the server in the Server class. How do I close the server?

jmrapp1 commented 8 years ago

The Server class has a close method which will close the server.