Solved

example on sending/reciving objects via sockets

Posted on 1997-09-19
1
275 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

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!

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

733 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