Register for your free account! | Forgot your password?

You last visited: Today at 04:09

  • Please register to post and access all features, it's quick, easy and FREE!


just a winsock server

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2006
Posts: 1,931
Received Thanks: 662
just a winsock server

This is an ancient winsock server, based mainly on the C++ HybridCO source (which was a great C++ reference for me). If you change the winsock part to BSD sockets (follow Beej`s guide on BSD sockets, and it won`t be hard at all, I promise) it will work on Linux based systems as well. Don`t know if anyone could use this, since those of you who don`t know C++ won`t use it, those of you who do can do this by themselves. So yeah.

The ThreadSafeVector.h contains only a class which wraps the std::vector functions using boost mutexes to ensure thread safety. Won`t post that, if you can`t do this, use a regular std::vector instead. If you can`t use std::vector then get a new hobby.





KraHen is offline  
Thanks
3 Users
Old 05/03/2012, 11:39   #2
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 782
Bro this gets me more high than weed.


I don't have a username is offline  
Old 05/03/2012, 11:41   #3
 
elite*gold: 0
Join Date: Jul 2006
Posts: 1,931
Received Thanks: 662
It`s 90% Hybrid`s work, I just converted it long ago because I was developing for Linux.

This isn`t really effective btw, on Windows you should always use IOCP.
KraHen is offline  
Thanks
1 User
Old 05/03/2012, 12:22   #4
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 782
Will look up on that broski :P
I don't have a username is offline  
Reply



« C++ - Pointers Question | Refinery "left time" attribute »

Similar Threads
[TUT]Winsock & VB.NET
11/21/2011 - Coding Tutorials - 0 Replies
Ich hab eben mal die sufu benutzt und bemerkt das viele Leute noch probleme mit winsock haben seti vb.NET da dies eigentlic hdafür abgeschafft wurde. So geht es aber tortzdem (1 CLIENT NUR!) Als erstes machen wir eine Winsock oberfläche auf die...
Winsock Error
08/17/2011 - Flyff PServer - Discussions / Questions - 4 Replies
Hey, ich möchte mal fragen ob jemand mir mit dem Problem mit Infiltration helfen kann. Ich habe das Problem dass wenn ich auf Brutforce CRC Key klicke, und er angeblich auch einen gefunden hat klicke ich auf Create Item. Warte... und bekomme eine...
[C++] Winsock + Select
12/03/2009 - C/C++ - 13 Replies
I solved this Problem adding a "continue;" at if(FD_ISSET(aSocket, &fdSet)) { AddSocket(accept(aSocket, NULL, NULL)); continue; }
winsock in vb.net?
12/29/2007 - CO2 Main - Discussions / Questions - 4 Replies
anyone know how to get winsock into vb.net?ive been googleing for an answer and cant findone. i downloaded oswinsock and still not sure how to use it?? Ive been using vb6 for a while and am using vb 2005 for the first time and this is pissing me...
vb6 winsock tutorial
10/24/2006 - .NET Languages - 2 Replies
Ich weiß, vb6 ist aaaaaaaalllt und 2005 ist sooooo besser (kann ich auch gleich zu C# gehen), aber fürs erste will ich das noch probieren. Okay, ich suche ein Winsock tutorial was allerdings direkt HEX packets schickt/verarbeitet und nicht im ASCII...



All times are GMT +2. The time now is 04:09.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.