/good

Introduction to programming final project with socket programming (Fall-2015)

Primary LanguageCGNU General Public License v3.0GPL-3.0

Good

Introduction

Networking phase of Final Project of Introduction to Programming Course (Fall 2015). On that year, Iman and I decided to have networking phase for our final project, which was a game that can be played in multiplayer model.

How it works?

Students use the multiplayer.h header file to initiate the game and then each player move should send with the given functions. Actually students didn't touch the socket programming by themselves, and use what we implemented for them.

C Socket Programming in MinGW

For those using MinGW as their socket programming library, they can use almost all of BSD socket functions in their program and at the end they must add these lines of code to load WINSock DLL.

WSADATA wsaData;
WSAStartup(MAKEWORD(2, 2), &wsaData);

And use following command for compiling:

gcc main.c  -lws2_32