GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Jun-2008, 03:48
mahendra mahendra is offline
New Member
 
Join Date: Nov 2007
Posts: 14
mahendra is an unknown quantity at this point

OnReceive notification failed from 2nd time onwards in Windows Socket Programming.


Hai any one can help me...
I have been working on windows socket programming for my new project.. i found some thing is wrong in that.
SCENARIO AS FOLLOWS:
My socket application (Dialog based application in VC++ MFC) is communicating with .NET application(WEB).
Here VC++ application is server application and .NET application is client.
Each send action from WEB application creates client socket and it sends the data to server and it waits for the response.. after response reached to client, client gets closed or if there is no response from server to client within specified time, then also client gets closed.
PROBLEM AS FOLLOWS:
My server is running fine if the web server(Client to my application) and my application is running in same system.. but if both are in different systems my server application receives data first time only.. from second time onwards My server didn't get OnReceive notfication.. What might be the reason.. please help me to trace this cunning problem.
NOTE::
I Derived my server socket from CSocket
For each client connection i created communication object and it gets closed at the end of client closed. OnAccept and Onclose notfications working fine but OnReceive notification received only first time.
 
 

Recent GIDBlogVista ?Widgets? on Windows XP by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[PROGRAM] Winsock Programming Max Payne MS Visual C++ / MFC Forum 1 08-Mar-2007 23:38
constructors/classes mapes479 C++ Forum 3 19-Nov-2006 17:34
printer / font color / windows programming nicolas_qc MS Visual C++ / MFC Forum 0 03-Jan-2006 23:13
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:25.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.