Click here to Skip to main content
15,887,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Inserting an element into an ordered vector/list Pin
Zac Howland16-Oct-06 7:59
Zac Howland16-Oct-06 7:59 
GeneralRe: Inserting an element into an ordered vector/list Pin
avimitrani16-Oct-06 8:25
avimitrani16-Oct-06 8:25 
GeneralRe: Inserting an element into an ordered vector/list Pin
Zac Howland16-Oct-06 8:43
Zac Howland16-Oct-06 8:43 
GeneralRe: Inserting an element into an ordered vector/list Pin
Stephen Hewitt16-Oct-06 13:42
Stephen Hewitt16-Oct-06 13:42 
AnswerRe: Inserting an element into an ordered vector/list Pin
Stephen Hewitt16-Oct-06 13:39
Stephen Hewitt16-Oct-06 13:39 
GeneralRe: Inserting an element into an ordered vector/list Pin
avimitrani16-Oct-06 23:55
avimitrani16-Oct-06 23:55 
AnswerRe: Inserting an element into an ordered vector/list Pin
jhwurmbach16-Oct-06 23:28
jhwurmbach16-Oct-06 23:28 
QuestionPlease help ASYNCSOCKET Pin
cgb14316-Oct-06 6:46
cgb14316-Oct-06 6:46 
I have written a server using CAsyncSocket functions
Create, Listen, Accept, Send, Close etc. similar to the EchoServer program from The Code Project.
I create a single Listening port using
m_Server_Connection.Create(Client_Port);
m_Server_Connection.Listen();

I accept connections using
m_Server_Connection.Accept(m_Receive[this_client]);
//m_Receive[client] is an array of six CAsyncSocket

Communication with a client is done using
m_Receive[this_client].Send(msg,strlen(msg));
or
m_Receive[this_client].Receive(pBuf,pBufsize);

My problem is, when a client disconnects the connection is closed but..
How do I determine which connection is closing when OnClose is serviced?
I only accept 6 connections and want to re-use the m_Receive[x] entry

AnswerRe: Please help ASYNCSOCKET Pin
Mark Salsbery16-Oct-06 7:38
Mark Salsbery16-Oct-06 7:38 
GeneralRe: Please help ASYNCSOCKET Pin
cgb14316-Oct-06 8:25
cgb14316-Oct-06 8:25 
GeneralRe: Please help ASYNCSOCKET Pin
Mark Salsbery16-Oct-06 8:34
Mark Salsbery16-Oct-06 8:34 
GeneralRe: Please help ASYNCSOCKET Pin
cgb14316-Oct-06 9:51
cgb14316-Oct-06 9:51 
GeneralRe: Please help ASYNCSOCKET Pin
Moak1-Nov-06 3:24
Moak1-Nov-06 3:24 
GeneralRe: Please help ASYNCSOCKET Pin
Mark Salsbery1-Nov-06 5:12
Mark Salsbery1-Nov-06 5:12 
GeneralRe: Please help ASYNCSOCKET Pin
Moak1-Nov-06 5:16
Moak1-Nov-06 5:16 
QuestionCreating a MPEG movie from set of images Pin
Hemant kulkarni16-Oct-06 4:36
Hemant kulkarni16-Oct-06 4:36 
AnswerRe: Creating a MPEG movie from set of images Pin
normanS16-Oct-06 9:55
normanS16-Oct-06 9:55 
AnswerRe: Creating a MPEG movie from set of images Pin
Mark Salsbery16-Oct-06 10:02
Mark Salsbery16-Oct-06 10:02 
GeneralRe: Creating a MPEG movie from set of images Pin
Hemant kulkarni16-Oct-06 20:25
Hemant kulkarni16-Oct-06 20:25 
GeneralRe: Creating a MPEG movie from set of images Pin
Mark Salsbery17-Oct-06 5:56
Mark Salsbery17-Oct-06 5:56 
AnswerRe: Creating a MPEG movie from set of images Pin
Hamid_RT17-Oct-06 7:38
Hamid_RT17-Oct-06 7:38 
Questionme again: How can I convert DATE into double correctly ? Pin
Checker200316-Oct-06 4:32
Checker200316-Oct-06 4:32 
AnswerRe: me again: How can I convert DATE into double correctly ? Pin
Cedric Moonen16-Oct-06 4:40
Cedric Moonen16-Oct-06 4:40 
AnswerRe: me again: How can I convert DATE into double correctly ? Pin
David Crow16-Oct-06 4:58
David Crow16-Oct-06 4:58 
GeneralRe: me again: How can I convert DATE into double correctly ? Pin
Checker200316-Oct-06 5:22
Checker200316-Oct-06 5:22 

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.