Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to build 64bit SDI with MFC? Pin
David Crow6-Jul-10 7:52
David Crow6-Jul-10 7:52 
AnswerRe: How to build 64bit SDI with MFC? Pin
hztj20056-Jul-10 8:29
hztj20056-Jul-10 8:29 
QuestionRe: How to build 64bit SDI with MFC? Pin
David Crow6-Jul-10 9:43
David Crow6-Jul-10 9:43 
AnswerRe: How to build 64bit SDI with MFC? Pin
hztj20057-Jul-10 3:33
hztj20057-Jul-10 3:33 
QuestionWinsock problem Pin
masnu6-Jul-10 7:01
masnu6-Jul-10 7:01 
AnswerRe: Winsock problem Pin
Moak6-Jul-10 11:31
Moak6-Jul-10 11:31 
GeneralRe: Winsock problem Pin
masnu7-Jul-10 3:26
masnu7-Jul-10 3:26 
GeneralRe: Winsock problem [modified] Pin
Moak7-Jul-10 4:32
Moak7-Jul-10 4:32 
If the TCP handshake is successful, you are actually sending packages from the microcontroller to the PC. This lets me wonder if the error you see is on application level, perhaps your socket code is not working properly, could be both client or server side. In the code snippet you provided there is no connect or bind/listen call, so I would not expect the socket to change status.

1) Have you tried connecting to your PC socket application from another PC (or via loopback)?
2) What error code do you get when connecting from microcontroller to PC? Timeout or something else?
3) Have you checked with Wireshark that TCP handshake is fine and packages are properly ACKed?
4) Which TCP stack are you using on the micocontroller (ARM SDK)? Could the problem not be Winsock at all?

Chat in Europe Java | [Coffee] Now with 24% more Twitter


modified on Wednesday, July 7, 2010 11:05 AM

GeneralRe: Winsock problem Pin
masnu7-Jul-10 4:56
masnu7-Jul-10 4:56 
GeneralRe: Winsock problem Pin
Moak7-Jul-10 5:05
Moak7-Jul-10 5:05 
AnswerRe: Winsock problem Pin
Parthiban6-Jul-10 18:16
Parthiban6-Jul-10 18:16 
GeneralRe: Winsock problem Pin
masnu7-Jul-10 3:30
masnu7-Jul-10 3:30 
GeneralRe: Winsock problem Pin
Emilio Garavaglia7-Jul-10 4:10
Emilio Garavaglia7-Jul-10 4:10 
GeneralRe: Winsock problem Pin
masnu7-Jul-10 4:24
masnu7-Jul-10 4:24 
GeneralRe: Winsock problem Pin
Iain Clarke, Warrior Programmer7-Jul-10 5:33
Iain Clarke, Warrior Programmer7-Jul-10 5:33 
AnswerRe: Winsock problem solved Pin
masnu7-Jul-10 8:20
masnu7-Jul-10 8:20 
GeneralRe: Winsock problem solved Pin
Moak7-Jul-10 8:22
Moak7-Jul-10 8:22 
GeneralRe: Winsock problem solved Pin
masnu7-Jul-10 8:25
masnu7-Jul-10 8:25 
GeneralRe: Winsock problem solved Pin
jeron17-Jul-10 10:18
jeron17-Jul-10 10:18 
GeneralRe: Winsock problem solved Pin
masnu7-Jul-10 10:22
masnu7-Jul-10 10:22 
GeneralRe: Winsock problem solved Pin
jeron17-Jul-10 10:41
jeron17-Jul-10 10:41 
GeneralRe: Winsock problem solved Pin
masnu7-Jul-10 10:46
masnu7-Jul-10 10:46 
GeneralRe: Winsock problem solved Pin
Moak7-Jul-10 11:15
Moak7-Jul-10 11:15 
GeneralRe: Winsock problem solved Pin
Moak7-Jul-10 11:56
Moak7-Jul-10 11:56 
GeneralRe: Winsock problem solved Pin
masnu8-Jul-10 2:59
masnu8-Jul-10 2:59 

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.