Click here to Skip to main content
15,566,691 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Efficiency Pin
Alan Balkany3-Mar-10 5:22
Alan Balkany3-Mar-10 5:22 
GeneralRe: Efficiency Pin
Covean3-Mar-10 5:35
Covean3-Mar-10 5:35 
GeneralRe: Efficiency Pin
Alan Balkany3-Mar-10 5:41
Alan Balkany3-Mar-10 5:41 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 8:12
mveCPallini3-Mar-10 8:12 
AnswerRe: Efficiency Pin
Chris Losinger3-Mar-10 6:04
professionalChris Losinger3-Mar-10 6:04 
AnswerRe: Efficiency Pin
supercat93-Mar-10 10:19
supercat93-Mar-10 10:19 
AnswerRe: Efficiency [modified] Pin
Covean3-Mar-10 21:42
Covean3-Mar-10 21:42 
Questionbind(...) in tcp is failed when connected twice C++ Pin
janaswamy uday3-Mar-10 3:14
janaswamy uday3-Mar-10 3:14 
Hi all,

I am using a WinSock programming for Client and Server Machines using Dialog Based Applications in MFC. I am using this Socket Api's like

In Server Side.
---------------

1) socket(AF_INET,SOCK_STREAM,0)
2) bind(listen_socket, (struct sockaddr*)&local, sizeof(local))
3) listen(listen_socket,1)
4) accept(listen_socket, (struct sockaddr*)&from, &fromlen)
5) recv(msgsock, Buffer, sizeof(Buffer), 0);
6) Close(...)

From Client i am sending the Data. First Time the Data is Sucsefully Transmitted. But in the Second time When i am trying to Bind the Socket in Server Side it is giving an error such that WSAEADDRINUSE. the second time onwards i am not able to bind the socket and not able to send data towards the server machine. please help me out.

Thanks in advance.
uday.
AnswerRe: bind(...) in tcp is failed when connected twice C++ Pin
Eugen Podsypalnikov3-Mar-10 4:03
Eugen Podsypalnikov3-Mar-10 4:03 
GeneralRe: bind(...) in tcp is failed when connected twice C++ Pin
janaswamy uday3-Mar-10 4:34
janaswamy uday3-Mar-10 4:34 
GeneralRe: bind(...) in tcp is failed when connected twice C++ Pin
Eugen Podsypalnikov3-Mar-10 4:44
Eugen Podsypalnikov3-Mar-10 4:44 
GeneralRe: bind(...) in tcp is failed when connected twice C++ Pin
janaswamy uday3-Mar-10 4:48
janaswamy uday3-Mar-10 4:48 
QuestionError while trying to implement KeyLogger Pin
avika3-Mar-10 2:30
avika3-Mar-10 2:30 
AnswerMessage Removed Pin
3-Mar-10 3:15
Hristo-Bojilov3-Mar-10 3:15 
GeneralRe: Error while trying to implement KeyLogger Pin
CPallini3-Mar-10 3:21
mveCPallini3-Mar-10 3:21 
AnswerRe: Error while trying to implement KeyLogger Pin
KingsGambit3-Mar-10 8:31
KingsGambit3-Mar-10 8:31 
QuestionError in calling EXE in custom action (Setup & deployment project) Pin
am 20093-Mar-10 2:17
am 20093-Mar-10 2:17 
AnswerRe: Error in calling EXE in custom action (Setup & deployment project) Pin
KarstenK3-Mar-10 2:33
mveKarstenK3-Mar-10 2:33 
AnswerRe: Error in calling EXE in custom action (Setup & deployment project) Pin
KingsGambit3-Mar-10 8:34
KingsGambit3-Mar-10 8:34 
QuestionProblem Converting CString to WCHAR Pin
TheFox3-Mar-10 1:16
TheFox3-Mar-10 1:16 
AnswerRe: Problem Converting CString to WCHAR Pin
Rajesh R Subramanian3-Mar-10 1:28
professionalRajesh R Subramanian3-Mar-10 1:28 
AnswerRe: Problem Converting CString to WCHAR Pin
CPallini3-Mar-10 1:31
mveCPallini3-Mar-10 1:31 
GeneralRe: Problem Converting CString to WCHAR Pin
TheFox3-Mar-10 3:32
TheFox3-Mar-10 3:32 
GeneralRe: Problem Converting CString to WCHAR Pin
CPallini3-Mar-10 4:27
mveCPallini3-Mar-10 4:27 
AnswerRe: Problem Converting CString to WCHAR Pin
KarstenK3-Mar-10 2:26
mveKarstenK3-Mar-10 2:26 

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.