Solved

example on sending/reciving objects via sockets

Posted on 1997-09-19
1
276 Views
Last Modified: 2012-06-21
I am trying to use the winsock and afxsock libraries to write a program where I can send and reciving objects via sockets. When I execute my program I get a debug assertion failure in the file afxwin1.inl(this file is part of the socket library). This failure occurs when I make the call socket.create() where socket is an instance of class CSocket.
Would you know why this error occurs? Do you have a sample
program that uses the sockets in c++ to send/recive objects.

any help would be appreciated

thanks,
praveen

 
0
Comment
Question by:praveen090397
[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
1 Comment
 
LVL 5

Accepted Solution

by:
yonat earned 50 total points
ID: 1170049
There is sample code that comes with MSDev. Check out CHATTER and CHATSRVR.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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++.

695 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