Click here to Skip to main content
15,900,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Efficiency Pin
Covean3-Mar-10 3:44
Covean3-Mar-10 3:44 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 6:47
mveCPallini3-Mar-10 6:47 
GeneralRe: Efficiency Pin
Covean3-Mar-10 22:22
Covean3-Mar-10 22:22 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 23:13
mveCPallini3-Mar-10 23:13 
GeneralRe: Efficiency Pin
Covean3-Mar-10 23:28
Covean3-Mar-10 23:28 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 23:37
mveCPallini3-Mar-10 23:37 
GeneralRe: Efficiency Pin
Covean3-Mar-10 23:48
Covean3-Mar-10 23:48 
GeneralRe: Efficiency Pin
KarstenK3-Mar-10 4:19
mveKarstenK3-Mar-10 4:19 
AnswerRe: Efficiency Pin
Alain Rist3-Mar-10 3:53
Alain Rist3-Mar-10 3:53 
AnswerRe: Efficiency Pin
Alan Balkany3-Mar-10 4:22
Alan Balkany3-Mar-10 4:22 
GeneralRe: Efficiency Pin
Covean3-Mar-10 4:35
Covean3-Mar-10 4:35 
GeneralRe: Efficiency Pin
Alan Balkany3-Mar-10 4:41
Alan Balkany3-Mar-10 4:41 
GeneralRe: Efficiency Pin
CPallini3-Mar-10 7:12
mveCPallini3-Mar-10 7:12 
AnswerRe: Efficiency Pin
Chris Losinger3-Mar-10 5:04
professionalChris Losinger3-Mar-10 5:04 
AnswerRe: Efficiency Pin
supercat93-Mar-10 9:19
supercat93-Mar-10 9:19 
AnswerRe: Efficiency [modified] Pin
Covean3-Mar-10 20:42
Covean3-Mar-10 20:42 
Questionbind(...) in tcp is failed when connected twice C++ Pin
janaswamy uday3-Mar-10 2:14
janaswamy uday3-Mar-10 2: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 3:03
Eugen Podsypalnikov3-Mar-10 3:03 
GeneralRe: bind(...) in tcp is failed when connected twice C++ Pin
janaswamy uday3-Mar-10 3:34
janaswamy uday3-Mar-10 3:34 
GeneralRe: bind(...) in tcp is failed when connected twice C++ Pin
Eugen Podsypalnikov3-Mar-10 3:44
Eugen Podsypalnikov3-Mar-10 3:44 
GeneralRe: bind(...) in tcp is failed when connected twice C++ Pin
janaswamy uday3-Mar-10 3:48
janaswamy uday3-Mar-10 3:48 
QuestionError while trying to implement KeyLogger Pin
avika3-Mar-10 1:30
avika3-Mar-10 1:30 
AnswerMessage Removed Pin
3-Mar-10 2:15
Hristo-Bojilov3-Mar-10 2:15 
GeneralRe: Error while trying to implement KeyLogger Pin
CPallini3-Mar-10 2:21
mveCPallini3-Mar-10 2:21 
AnswerRe: Error while trying to implement KeyLogger Pin
KingsGambit3-Mar-10 7:31
KingsGambit3-Mar-10 7:31 

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.