Solved

example on sending/reciving objects via sockets

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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…
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now