Solved

Help!!!Help!!!MayDay!!!Socket problem

Posted on 1998-09-26
8
171 Views
Last Modified: 2010-04-01

 I am using a CSocket class for transferring info.between two pts.say ,Point1 & Point2.Both point1 and point2 send and receive data.First point1 sends a message and point2 receives it  without problem.Then point2 sends data using the same socket but the data is not received.When I use a TRY block for the Flush() I get a generic exception.I am using a CSocketFile and CArchive.I have also tried to send the data thru a CAsyncSocket::send() fn.It returns a SOCKET_ERROR but when I check for specific exceptions using GetLastError() none is thrown.

    Thanks in advance for Ur replies.
0
Comment
Question by:prats_sr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 6

Expert Comment

by:thresher_shark
ID: 1173779
Please post some of your code.  With it, we can probably help you better.  Thanks.
0
 
LVL 3

Expert Comment

by:zhongbing
ID: 1173780
for socket problem, you should give more clue:
such as if the connectiong still exist(use netstat to see)?
if the point2 can ping point1?
also the code will help
0
 
LVL 1

Expert Comment

by:andla
ID: 1173781
I'm new to this CSocket. I would be grateful if you could explain what i can do with it and witch file is nessesary to include. If this become clear i could perhaps help you with my old C experience.

Your sincerely
Andla
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Accepted Solution

by:
lucidity earned 90 total points
ID: 1173782
http://www.geocities.com/ResearchTriangle/Lab/5376/Spells/GServer/index.html

This is a generic server app which will accept connections then send a response. It does not use any MFC classes so catching exceprions is not a problem.
0
 
LVL 1

Expert Comment

by:andla
ID: 1173783
Only if sombody want to answer.
Generic Server?

Hmm when trying to find what Generic means it shows up the word general in the MSVC++ 4.1 tutorial. Must be a bug. Not that i'm beginner but some knowledge does escape my mind.

Yours sincerely
andla
0
 
LVL 2

Expert Comment

by:lucidity
ID: 1173784
Generic means it just accepts data and places it in a buffer for you to parse and respond.
0
 
LVL 1

Expert Comment

by:andla
ID: 1173785
Thanks lucidity. :-)
0
 
LVL 2

Expert Comment

by:lucidity
ID: 1173786
let me know how it works out
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
max float value 3 60
Copy output image from TWindowsMediaPlayer 6 55
Precision Problem in C++ 7 52
Android development question 2 81
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question