PDA

View Full Version : SocketLib


javaman
04-05-2006, 07:24 AM
I am building eqemu with VC 2005 Express free version.

OK, I have read the other threads on this issue and am curious on what the best way to solve it is:

(A) Create a separate vs subproject to build the lib

(B) just add the include for this and add the cpp files to world's common source files (ie just build it straight in)

fathernitwit
04-05-2006, 01:20 PM
just add the CPP... that should be how it is in CVS.

javaman
04-06-2006, 03:19 AM
thanks, getting it slowly. one other little thing. visual studio express asserts on the close(socket) in EQStreamFactory::Close(), but when I use ifdef WIN32 closesocket(socket) , everything works fine. I guess MS wants to change things??? I dont know if WSACleanup or any of that other MS stuff is needed too.

fathernitwit
04-06-2006, 12:55 PM
good catch, windows dosent like the whoe "sockets are just file descriptors" idea, never has.