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

C / C++ / MFC

 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
«_Superman_»28-May-13 20:14
professional«_Superman_»28-May-13 20:14 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
Henry Hong28-May-13 20:32
Henry Hong28-May-13 20:32 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
«_Superman_»28-May-13 20:45
professional«_Superman_»28-May-13 20:45 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
Henry Hong28-May-13 23:37
Henry Hong28-May-13 23:37 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
Henry Hong29-May-13 16:23
Henry Hong29-May-13 16:23 
QuestionCAsyncSocket questions Pin
ForNow28-May-13 4:43
ForNow28-May-13 4:43 
AnswerRe: CAsyncSocket questions Pin
Sivaraman Dhamodharan28-May-13 20:49
Sivaraman Dhamodharan28-May-13 20:49 
GeneralRe: CAsyncSocket questions Pin
ForNow28-May-13 22:33
ForNow28-May-13 22:33 
I have 4 CAsyncSocket derived classes wrapped inside 4 Derived CWinThread Class

in the CWinThread::Initinstance I set the ipaddr = "192.168.1.4"

When I use NULL as the last parameter in the CAsynSocket::create or BIND I am successful in creating
a socket however when I use the ipaddr "192.168.1.4" the ipaddr of the machine I get


WSAEADDRNOTAVAIL

The listening code is MainFrame Assembler EZASMI select which is intended to process multiple I/O's
on multiple sockets

ASM
EZASMI TYPE=SELECT,      Issue Macro
     MAXSOC=MAXSOC1,    SPECIFY MAXIMUM NUMBER OF SOCKETS
     TIMEOUT=TIMEVAL,
     RSNDMSK=RSNDMSK,   READ MASK
     RRETMSK=RRETMSK,   RETURN FROM READ
     WSNDMSK=WSNDMSK,   WRITE MASK
     WRETMSK=WRETMSK,   RETURN FROM WRITE
     ESNDMSK=ESNDMSK,
     ERETMSK=ERETMSK,
     ERRNO=ERRNO,       (Specify ERRNO field)
     RETCODE=RETCODE,   (Specify RETCODE field)
     ECB=MY_ECB,        MAIN TASK EMB
     ERROR=ERROR,       Abend if Macro error
     TASK=MYTIE,
     MF=(E,MY_PARM)

C++
 thisocket.Socket(SOCK_STREAM,FD_READ|FD_WRITE|FD_CONNECT,NULL,AF_INET);
	if(thisocket.Bind(thisocket.port,ipaddr) == 0)
		 error_code = GetLastError();
thisocket.GetSockOpt(SO_KEEPALIVE | SO_DEBUG, &thisocket.option,val_ptr, SOL_SOCKET); 
	    if(thisocket.SetSockOpt(SO_KEEPALIVE | SO_DEBUG, &thisocket.option,val, SOL_SOCKET) == 0)
				 error_code = GetLastError(); 

Questionproblem with using program Creating a Serial communication on Win32 Pin
sindbad1128-May-13 2:00
sindbad1128-May-13 2:00 
AnswerRe: problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt28-May-13 2:19
professionalJochen Arndt28-May-13 2:19 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
sindbad1128-May-13 22:07
sindbad1128-May-13 22:07 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt28-May-13 22:52
professionalJochen Arndt28-May-13 22:52 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
sindbad1128-May-13 23:49
sindbad1128-May-13 23:49 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt29-May-13 0:31
professionalJochen Arndt29-May-13 0:31 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
sindbad1112-Aug-13 1:19
sindbad1112-Aug-13 1:19 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt16-Aug-13 2:52
professionalJochen Arndt16-Aug-13 2:52 
General: problem with using program Creating a Serial communication on Win32 Pin
sindbad116-Sep-13 23:29
sindbad116-Sep-13 23:29 
GeneralRe: : problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt6-Sep-13 23:45
professionalJochen Arndt6-Sep-13 23:45 
GeneralRe: : problem with using program Creating a Serial communication on Win32 Pin
sindbad117-Sep-13 0:08
sindbad117-Sep-13 0:08 
GeneralRe: : problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt7-Sep-13 0:28
professionalJochen Arndt7-Sep-13 0:28 
GeneralRe: : problem with using program Creating a Serial communication on Win32 Pin
sindbad117-Sep-13 0:56
sindbad117-Sep-13 0:56 
GeneralRe: : problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt7-Sep-13 2:31
professionalJochen Arndt7-Sep-13 2:31 
QuestionCoding guidelines C Pin
topcatalpha27-May-13 2:56
topcatalpha27-May-13 2:56 
QuestionRe: Coding guidelines C Pin
Maximilien27-May-13 7:08
Maximilien27-May-13 7:08 
AnswerRe: Coding guidelines C Pin
topcatalpha28-May-13 20:41
topcatalpha28-May-13 20:41 

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.