Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error... not compiling... Pin
Zac Howland28-Aug-06 9:35
Zac Howland28-Aug-06 9:35 
GeneralRe: error... not compiling... Pin
Stephen Hewitt28-Aug-06 17:32
Stephen Hewitt28-Aug-06 17:32 
GeneralRe: error... not compiling... Pin
Zac Howland29-Aug-06 4:03
Zac Howland29-Aug-06 4:03 
QuestionPROCESS_INFORMATION [modified] Pin
Sam 200628-Aug-06 8:20
Sam 200628-Aug-06 8:20 
AnswerRe: PROCESS_INFORMATION Pin
valikac28-Aug-06 9:14
valikac28-Aug-06 9:14 
QuestionRe: PROCESS_INFORMATION Pin
David Crow28-Aug-06 10:37
David Crow28-Aug-06 10:37 
AnswerRe: PROCESS_INFORMATION Pin
Sam 200628-Aug-06 11:04
Sam 200628-Aug-06 11:04 
QuestionRe: PROCESS_INFORMATION Pin
David Crow29-Aug-06 2:40
David Crow29-Aug-06 2:40 
Questionedit control Pin
kumar_mk28-Aug-06 8:15
kumar_mk28-Aug-06 8:15 
AnswerRe: edit control Pin
led mike28-Aug-06 8:29
led mike28-Aug-06 8:29 
GeneralRe: edit control Pin
kumar_mk28-Aug-06 9:09
kumar_mk28-Aug-06 9:09 
GeneralRe: edit control Pin
led mike28-Aug-06 10:34
led mike28-Aug-06 10:34 
AnswerRe: edit control Pin
David Crow28-Aug-06 10:36
David Crow28-Aug-06 10:36 
QuestionDrawing on a CRichEditCtrl Pin
BlitzPackage28-Aug-06 6:03
BlitzPackage28-Aug-06 6:03 
QuestionRe: Drawing on a CRichEditCtrl Pin
David Crow28-Aug-06 6:10
David Crow28-Aug-06 6:10 
AnswerRe: Drawing on a CRichEditCtrl Pin
BlitzPackage28-Aug-06 7:35
BlitzPackage28-Aug-06 7:35 
GeneralRe: Drawing on a CRichEditCtrl Pin
David Crow28-Aug-06 8:08
David Crow28-Aug-06 8:08 
GeneralRe: Drawing on a CRichEditCtrl Pin
Waldermort28-Aug-06 12:17
Waldermort28-Aug-06 12:17 
AnswerRe: Drawing on a CRichEditCtrl Pin
Hamid_RT29-Aug-06 7:37
Hamid_RT29-Aug-06 7:37 
QuestionTCP/IP question Pin
G_S28-Aug-06 5:30
G_S28-Aug-06 5:30 
AnswerRe: TCP/IP question Pin
Dave Calkins28-Aug-06 5:46
Dave Calkins28-Aug-06 5:46 
GeneralRe: TCP/IP question Pin
G_S28-Aug-06 6:22
G_S28-Aug-06 6:22 
AnswerRe: TCP/IP question Pin
Zac Howland28-Aug-06 5:50
Zac Howland28-Aug-06 5:50 
G_S wrote:
To minimize code execution is there any way to block the IP in the operating system level to minimize code execution since if the attacking IP is allowed to re-connect to the server again it can easily cause a DOS.


The short answer to your question is No. At least, not in the manner you appear to want it. If you want to limit server access, turn on a firewall and security software package (external to your app) that will monitor all ports for such behavior. There is no OS-level APIs to set up this kind of security.

G_S wrote:
I could only come up with a globally linked list to hold the IP is there any better way to do this.


Why is the list of "bad" IPs shared with multiple threads?

I would probably use a BST instead of a list, and definately do not make it global. By switching to a BST, you will probably see a significant speed increase. If you absolutely must share it with several threads for whatever reason, you might try using a more complex semaphore to allow as many threads to read it at a given time (so long as no thread is trying to write to it), but only allow 1 writing thread.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: TCP/IP question Pin
G_S28-Aug-06 6:21
G_S28-Aug-06 6:21 
GeneralRe: TCP/IP question Pin
Zac Howland28-Aug-06 6:39
Zac Howland28-Aug-06 6:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.