Click here to Skip to main content
15,892,674 members
Articles / Desktop Programming / MFC

Voice chat using a client-server architecture

Rate me:
Please Sign up or sign in to vote.
4.77/5 (33 votes)
2 Aug 20033 min read 249.9K   12.1K   84  
Voice chat networking
// mysocket.h: interface for the mysocket class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYSOCKET_H__33C94245_415D_11D6_8886_200654C10000__INCLUDED_)
#define AFX_MYSOCKET_H__33C94245_415D_11D6_8886_200654C10000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include<afxsock.h>


class mysocket : public CSocket  
{
public:
	CDialog *dlg;
	CString name;
	int closeflag;
	
	mysocket();
	setparent(CDialog *dlg);
	//void OnConnect(int errcode);
	void OnReceive(int errcode);
	void OnClose(int errcode);
	

};

#endif // !defined(AFX_MYSOCKET_H__33C94245_415D_11D6_8886_200654C10000__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
Nagareshwar is a security enthusiastic person involved in reverse engineering, vulnerability research, coding security tools etc. He spend most of the time in uncovering the secrets of computer world.

He holds 'Bachelor of Engineering' degree from National Institute of Technology of Karnataka, India. He had professional experience of 2.5 years in Novell. At Novell he was working on various security products including 'Novell Secure Login' and CASA.

For more details visit his website http://securityxploded.com

Comments and Discussions