Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating "light" backups of Visual Studio projects... Pin
@largeinsd18-Sep-07 7:01
@largeinsd18-Sep-07 7:01 
QuestionUDP Application on Vista: Fail on sendto function Pin
Cris17-Sep-07 10:20
Cris17-Sep-07 10:20 
AnswerRe: UDP Application on Vista: Fail on sendto function Pin
Mark Salsbery17-Sep-07 11:32
Mark Salsbery17-Sep-07 11:32 
AnswerRe: UDP Application on Vista: Fail on sendto function Pin
David Crow17-Sep-07 11:56
David Crow17-Sep-07 11:56 
GeneralRe: UDP Application on Vista: Fail on sendto function Pin
Cris18-Sep-07 3:53
Cris18-Sep-07 3:53 
QuestionRe: UDP Application on Vista: Fail on sendto function Pin
David Crow18-Sep-07 3:58
David Crow18-Sep-07 3:58 
AnswerRe: UDP Application on Vista: Fail on sendto function Pin
Cris18-Sep-07 4:44
Cris18-Sep-07 4:44 
GeneralRe: UDP Application on Vista: Fail on sendto function Pin
Cris20-Sep-07 3:28
Cris20-Sep-07 3:28 
I have solved the problem... removing the bind() function execution.

Acording with the MSDN documentation:

"The bind function is used on an unconnected socket before subsequent calls to the connect or listen functions. It is used to bind to either connection-oriented (stream) or connectionless (datagram) sockets. When a socket is created with a call to the socket function, it exists in a namespace (address family), but it has no name assigned to it. Use the bind function to establish the local association of the socket by assigning a local name to an unnamed socket."

I understood that the bind function is not necessary, because I only want to send datagrams with a SOCKET to server and receive the responses by the same SOCKET, and the WSAAsyncSelect function grants the data response to the app.

This is correct?

Thanks,
Cris.
QuestionHTML help integration Pin
Nathan Holt at EMOM17-Sep-07 9:41
Nathan Holt at EMOM17-Sep-07 9:41 
QuestionFailed new operator Pin
Joe Smith IX17-Sep-07 9:03
Joe Smith IX17-Sep-07 9:03 
AnswerRe: Failed new operator Pin
Mark Salsbery17-Sep-07 9:21
Mark Salsbery17-Sep-07 9:21 
GeneralRe: Failed new operator Pin
Joe Smith IX17-Sep-07 9:25
Joe Smith IX17-Sep-07 9:25 
GeneralRe: Failed new operator Pin
Mark Salsbery17-Sep-07 9:32
Mark Salsbery17-Sep-07 9:32 
GeneralRe: Failed new operator Pin
Joe Smith IX17-Sep-07 9:42
Joe Smith IX17-Sep-07 9:42 
AnswerRe: Failed new operator Pin
Nathan Holt at EMOM17-Sep-07 9:35
Nathan Holt at EMOM17-Sep-07 9:35 
GeneralRe: Failed new operator Pin
Joe Smith IX17-Sep-07 9:47
Joe Smith IX17-Sep-07 9:47 
GeneralRe: Failed new operator Pin
Nathan Holt at EMOM17-Sep-07 10:24
Nathan Holt at EMOM17-Sep-07 10:24 
GeneralRe: Failed new operator Pin
Joe Smith IX17-Sep-07 16:34
Joe Smith IX17-Sep-07 16:34 
QuestionRe: Failed new operator Pin
Mark Salsbery17-Sep-07 18:28
Mark Salsbery17-Sep-07 18:28 
AnswerRe: Failed new operator Pin
Joe Smith IX17-Sep-07 21:21
Joe Smith IX17-Sep-07 21:21 
GeneralRe: Failed new operator Pin
Mark Salsbery18-Sep-07 5:16
Mark Salsbery18-Sep-07 5:16 
GeneralRe: Failed new operator Pin
Nathan Holt at EMOM18-Sep-07 7:29
Nathan Holt at EMOM18-Sep-07 7:29 
GeneralRe: Failed new operator Pin
Joe Smith IX18-Sep-07 7:47
Joe Smith IX18-Sep-07 7:47 
GeneralRe: Failed new operator Pin
Mark Salsbery18-Sep-07 8:45
Mark Salsbery18-Sep-07 8:45 
GeneralRe: Failed new operator Pin
Joe Smith IX18-Sep-07 16:30
Joe Smith IX18-Sep-07 16:30 

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.