25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
26 * POSSIBILITY OF SUCH DAMAGE. |
26 * POSSIBILITY OF SUCH DAMAGE. |
27 * |
27 * |
28 */ |
28 */ |
29 |
29 |
30 #include "terminal-chess.h" |
30 #include "network.h" |
31 #include "game.h" |
31 #include "game.h" |
|
32 #include "chess/game-info.h" |
|
33 #include "chess/pgn.h" |
32 #include <ncurses.h> |
34 #include <ncurses.h> |
33 #include <errno.h> |
35 #include <errno.h> |
34 #include <string.h> |
36 #include <string.h> |
|
37 #include <stdlib.h> |
35 |
38 |
36 static int server_open(Server *server, char *port) { |
39 static int server_open(Server *server, char *port) { |
37 printw("\nListening for client...\n"); |
40 printw("\nListening for client...\n"); |
38 refresh(); |
41 refresh(); |
39 if (net_create(server, port)) { |
42 if (net_create(server, port)) { |