Click here to Skip to main content
15,885,366 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 248.9K   12.1K   84  
Voice chat networking
// Serdlg.h: interface for the Serdlg class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SERDLG_H__73FA8624_4122_11D6_8886_801654C10000__INCLUDED_)
#define AFX_SERDLG_H__73FA8624_4122_11D6_8886_801654C10000__INCLUDED_

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

#include"mysocket.h"

class Serdlg : public CDialog  
{
public:
	mysocket sersock;
	CString userlist,buser;
	CPtrList clientlist;
	CStdioFile log;
	CListBox *displist;
	int reccount,broadcast;
	
	Serdlg(int n);
	virtual ~Serdlg();

	int OnInitDialog();
	void OnStart();
	void OnAbout();
	void OnPaint();
	HBRUSH OnCtlColor(CDC *pdc,CWnd *pwnd,UINT ctrl);
	void OnCloseDlg();
	void Accept();
	void Receive(mysocket *client);
	void SendToAll(CString client,char *data,int size,int flag);
	void SendToClient(CString user,char *data,int size);
	void UpdateList(CString name);
	void OnCloseClient(mysocket *client);

DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_SERDLG_H__73FA8624_4122_11D6_8886_801654C10000__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