Commit Graph

30 Commits

Author SHA1 Message Date
Pontus Fransson df1470eb2c Network - Send/Recv both ways.
Impl: SetBlockingMode() : Connection.
Impl: Resize() : OysterByte.
Remade Clear() : OysterByte.
Added bool return if FetchMessage() succeded or failed : PostBox.
Fixed a few errors with mutex on ThreadedClient.
Added missing mutex unlock in ThreadSafeQueue.
2013-12-03 23:12:48 +01:00
Pontus Fransson e837b80e43 Network - Fixed warning, made functions private.
Fixed warnings.
Made functions regarding the thread private in listener.
2013-12-03 13:20:50 +01:00
Sam Mario Svensson 10c1dc57f3 merge fix 2013-12-03 13:08:04 +01:00
Pontus Fransson d78b48319d Network - Added MessagePlayerPos
Added MessagePlayerPos
Fixed bugg with adding float array.
2013-12-03 11:46:46 +01:00
Pontus Fransson 407f3c5c9a Added documentation and removed unecessesary code. 2013-11-29 09:11:30 +01:00
Pontus Fransson 1617606145 PostBox
Created PostBox and IPostBox.
Listener post new clients to PostBox.
2013-11-28 16:15:28 +01:00
Pontus Fransson 6e24acea2b Listener's Accept() is now threaded.
Added function private to Connection SetBlockingMode(bool blocking); But
it doesn't do anything yet.
Listener is now accepting clients in a thread.
GetNewClient() returns the socket that has connected. -1 if there is no
new client connected. (Can only connect 1 client at a time.)
The simple chat program is not working anymore because of changes in the
server.
2013-11-27 14:33:08 +01:00
Pontus Fransson 43b111f0d3 Pull MiscBranch 2013-11-27 11:28:11 +01:00
Pontus Fransson aeddc032d9 Merge branch 'Network' of https://github.com/dean11/Danbias into Network
Conflicts:
	Code/Network/NetworkDependencies/Connection.cpp
	Code/Network/NetworkDependencies/Connection.h
	Code/Network/NetworkDependencies/IConnection.h
	Code/Network/OysterNetworkClient/Client.cpp
	Code/Network/OysterNetworkClient/Client.h
	Code/Network/OysterNetworkClient/ClientMain.cpp
	Code/Network/OysterNetworkServer/Client.cpp
	Code/Network/OysterNetworkServer/Client.h
	Code/Network/OysterNetworkServer/ServerMain.cpp
2013-11-27 11:06:03 +01:00
Pontus Fransson 214e29e906 OysterByte
Added Byte class instead of handling byte messages manually.
Converted all functions to use OysterByte.
2013-11-27 11:01:22 +01:00
Sam Mario Svensson f6ade9e4fd ErrorMessages everywhere! 2013-11-26 13:45:03 +01:00
Pontus Fransson 45c145439a Fixade crash och flyttade initsockets, shutdownsockets.
Moved initsocket and shutdownsockets to WinsockFunctions.
2013-11-25 20:27:23 +01:00
Pontus Fransson caabb6702e Fixed code standard, Added packing functions 2013-11-25 19:00:33 +01:00
Pontus Fransson ad7091e520 Fixed automatic size on Messages 2013-11-22 15:48:49 +01:00
Pontus Fransson d33220f8ca Fixed memory leaks
Fixed memory leaks.
2013-11-22 14:23:08 +01:00
Pontus Fransson 623cffced6 Added protocols to an enum
Now we don't have to type cast
2013-11-22 11:40:55 +01:00
Pontus Fransson bacb83b084 Merge branch 'Network' of https://github.com/dean11/Danbias into Network
Conflicts:
	Code/Network/NetworkDependencies/Connection.cpp
	Code/Network/NetworkDependencies/Connection.h
	Code/Network/OysterNetworkClient/ClientMain.cpp
	Code/Network/OysterNetworkServer/ServerMain.cpp
2013-11-22 09:24:44 +01:00
Pontus Fransson 5265fd1af1 Fixed merge errors 2013-11-22 09:17:07 +01:00
Pontus Fransson 954a1ac669 Fixed error
Fixed translation
2013-11-22 08:56:00 +01:00
Sam Mario Svensson 4142688f6c unsigned char instead of char and chat program with protocols 2013-11-22 08:54:26 +01:00
Pontus Fransson dcf456ce6d Fixed implementation of Translator 2013-11-21 14:49:30 +01:00
Pontus Fransson 7c417dd223 Merge 2013-11-21 13:46:25 +01:00
Pontus Fransson 87e1cf0436 Added Message base class
Packing functions,
MessageHeader; MessageTest,
2013-11-21 13:42:38 +01:00
Sam Mario Svensson f77efb107d Implemented Translator
also fixed some coding standards with namespaces in client, connection,
listener, server.
added protocols with enums for packagetype.
2013-11-21 13:40:52 +01:00
Pontus Fransson 5bcc285141 Sending empty strings, prints messages on server 2013-11-20 10:34:05 +01:00
Pontus Fransson 816dced937 Chat test server 2013-11-19 14:24:38 +01:00
Pontus Fransson ac75e178ce Sending a message from server to client (done and done) 2013-11-19 13:42:50 +01:00
Pontus Fransson c04593b575 Changed name on main files on server and client 2013-11-19 09:34:24 +01:00
Pontus Fransson 32348f4cc2 Removed old stuff, and added main files for all projects 2013-11-18 16:34:50 +01:00
dean11 33e7afabcd Restructured folders to give a flexible solution for dependencies and added to ignore list 2013-11-18 15:41:09 +01:00
Renamed from Network/OysterNetworkServer/ServerMain.cpp (Browse further)