Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

example on sending/reciving objects via sockets

Posted on 1997-09-19
1
Medium Priority
?
278 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 100 total points
ID: 1170049
There is sample code that comes with MSDev. Check out CHATTER and CHATSRVR.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

618 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