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

C / C++ / MFC

 
QuestionHow to build 64bit SDI with MFC? [modified] Pin
hztj20056-Jul-10 7:24
hztj20056-Jul-10 7:24 
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 
Yes I can connect to the micro and send data from the PC to the micro but not the other way around. My socket is created as follows:
// Create socket
Socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);


And then I wait for data:
fd_set	sckt;
timeval	timeout;

// Set two second timeout
timeout.tv_sec	= 2;
timeout.tv_usec = 0;

FD_ZERO( &sckt );
FD_SET( Socket, &sckt );

int nRet = select( 0, &sckt, 0, 0, &timeout );

select always returns 0 indicating a timeout no matter how much data I send from the micro.
GeneralRe: Winsock problem [modified] Pin
Moak7-Jul-10 4:32
Moak7-Jul-10 4:32 
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 

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.