Click here to Skip to main content
15,915,752 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionstrncpy_s Benchmark Pin
Richard Andrew x6425-Jun-06 12:02
professionalRichard Andrew x6425-Jun-06 12:02 
AnswerRe: strncpy_s Benchmark Pin
Stephen Hewitt25-Jun-06 13:57
Stephen Hewitt25-Jun-06 13:57 
AnswerRe: strncpy_s Benchmark Pin
Nemanja Trifunovic25-Jun-06 14:23
Nemanja Trifunovic25-Jun-06 14:23 
GeneralRe: strncpy_s Benchmark Pin
Stephen Hewitt25-Jun-06 14:33
Stephen Hewitt25-Jun-06 14:33 
QuestionBCDebug Pin
Ray Cassick25-Jun-06 10:44
Ray Cassick25-Jun-06 10:44 
AnswerRe: BCDebug Pin
peterchen25-Jun-06 10:47
peterchen25-Jun-06 10:47 
AnswerRe: BCDebug Pin
Michael Dunn25-Jun-06 11:59
sitebuilderMichael Dunn25-Jun-06 11:59 
GeneralRe: BCDebug Pin
Ray Cassick25-Jun-06 14:12
Ray Cassick25-Jun-06 14:12 
Questionsimulate the keyboad values Pin
Fabian Tang25-Jun-06 8:17
Fabian Tang25-Jun-06 8:17 
Questiondeleting sections from ini Pin
fury 8425-Jun-06 7:02
fury 8425-Jun-06 7:02 
AnswerRe: deleting sections from ini Pin
Joe Woodbury25-Jun-06 8:16
professionalJoe Woodbury25-Jun-06 8:16 
GeneralRe: deleting sections from ini Pin
fury 8425-Jun-06 8:20
fury 8425-Jun-06 8:20 
QuestionCheck for privileges Pin
xuanvulh25-Jun-06 4:19
xuanvulh25-Jun-06 4:19 
Questionsocket question [modified] Pin
mohanrajh25-Jun-06 2:45
mohanrajh25-Jun-06 2:45 
AnswerRe: socket question Pin
Jun Du25-Jun-06 4:24
Jun Du25-Jun-06 4:24 
mohanrajh wrote:
if(accept(s,..) == SOCKET_ERROR)
{
//socket error due to queue full
//What to do here?
//Do i close the socket(s) and exist the appln? OR
//break from here & start listening for new connection event
}

When accept(s, ...) returned an invalid socket, something went wrong with that channel. At the minimum, you should close that socket. There is a good chance that you cannot accept the same connection any more. Your program may continue if that connection is not critical to your application. But, terminating the program can reset all sockect channels associated with it.

Best,
Jun
GeneralRe: socket question Pin
mohanrajh25-Jun-06 17:24
mohanrajh25-Jun-06 17:24 
GeneralRe: socket question Pin
Jun Du26-Jun-06 4:05
Jun Du26-Jun-06 4:05 
GeneralRe: socket question Pin
Jun Du26-Jun-06 4:44
Jun Du26-Jun-06 4:44 
QuestionChange a Unicode project to MBCS using VS2005 Pin
cv_k3n24-Jun-06 23:44
cv_k3n24-Jun-06 23:44 
AnswerRe: Change a Unicode project to MBCS using VS2005 Pin
Justin Tay25-Jun-06 0:05
Justin Tay25-Jun-06 0:05 
GeneralRe: Change a Unicode project to MBCS using VS2005 Pin
cv_k3n25-Jun-06 0:14
cv_k3n25-Jun-06 0:14 
GeneralRe: Change a Unicode project to MBCS using VS2005 [modified] Pin
Justin Tay25-Jun-06 0:37
Justin Tay25-Jun-06 0:37 
GeneralRe: Change a Unicode project to MBCS using VS2005 Pin
cv_k3n25-Jun-06 0:54
cv_k3n25-Jun-06 0:54 
GeneralRe: Change a Unicode project to MBCS using VS2005 Pin
cv_k3n26-Jun-06 10:28
cv_k3n26-Jun-06 10:28 
GeneralRe: Change a Unicode project to MBCS using VS2005 Pin
Justin Tay27-Jun-06 5:06
Justin Tay27-Jun-06 5:06 

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.