Click here to Skip to main content
15,896,606 members
Home / Discussions / Collaboration / Beta Testing
   

Collaboration / Beta Testing

 
GeneralZoomIn Upgrade Pin
Blake Miller7-Jun-05 6:25
Blake Miller7-Jun-05 6:25 
GeneralC++ documentation tool - betatesters needed Pin
narechk2-Jun-05 6:54
narechk2-Jun-05 6:54 
GeneralRe: C++ documentation tool - betatesters needed Pin
DavidNohejl2-Jun-05 7:02
DavidNohejl2-Jun-05 7:02 
GeneralVisual Studio.NET Addin : Beta testers required! ;) Pin
Marc Piulachs31-May-05 18:57
Marc Piulachs31-May-05 18:57 
GeneralFreeware requests translation Pin
mrdance16-May-05 22:14
mrdance16-May-05 22:14 
GeneralRe: Freeware requests translation Pin
Alexandrescu1-Sep-05 10:13
Alexandrescu1-Sep-05 10:13 
GeneralArchitecture question Pin
Jon Merrifield5-May-05 0:58
Jon Merrifield5-May-05 0:58 
GeneralNon MFC :Client /Server Pin
brilliant10119-Apr-05 10:31
brilliant10119-Apr-05 10:31 
i have converted the program into non MFC but it complies and runs but does not send the string.

1) Client:
include "stdafx.h"
#include iostream.h
#include conio.h
#include winsock2.h
#include process.h
#include stdio.h

UINT WINAPI SendStatus(LPVOID pParam)
{

cout<<"\n I am in the thread!!\n";
SOCKET client; //socket is uint
WSADATA wsaData; //WSADATA structure

sockaddr_in serveraddr; //sockaddr_in

int wsaret=WSAStartup(0x101,&wsaData); //Initialize wsaret variable

if(wsaret!=0)
{
cout<<"Fail to initialize:";
return 0;
}

struct hostent *hp;
unsigned int addr;
struct sockaddr_in server;
char servername [30] ="localhost";

SOCKET conn;
conn=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
if(conn==INVALID_SOCKET)
return 0;
if(inet_addr(servername)==INADDR_NONE)
{
hp=gethostbyname(servername);
}
else
{
addr=inet_addr(servername);
hp=gethostbyaddr((char*)&addr,sizeof(addr),AF_INET);
}
if(hp==NULL)
{
cout<<"Fail to get peer address:";
closesocket(conn);
return 0;
}
server.sin_addr.s_addr=*((unsigned long*)hp->h_addr);
server.sin_family=AF_INET;
server.sin_port=htons(20248);
if(connect(conn,(struct sockaddr*)&server,sizeof(server)))
{
cout<<"Fail to connect:";
closesocket(conn);
return 0;
}
char buff[512];
sprintf(buff,"Client Process Status: \nBismillah he ar rahman ner raheem\n Allah is Great");

cout<<"\nClient Process status is being send:\n";

send(conn,buff,strlen(buff),0);
closesocket(conn);
cout<<"Process's Status sent:"<
GeneralSerious:Client Server User Tracking Pin
brilliant10119-Apr-05 10:27
brilliant10119-Apr-05 10:27 
Generalvss cmd line get Pin
RobNicolson8-Apr-05 5:18
RobNicolson8-Apr-05 5:18 
Generallooking for remote keylogger programmers Pin
r4ttl329-Mar-05 9:20
r4ttl329-Mar-05 9:20 
GeneralRe: looking for remote keylogger programmers Pin
ThatsAlok3-Apr-05 21:11
ThatsAlok3-Apr-05 21:11 
GeneralWinRadio DLL for VB6 Pin
Seeker0128-Mar-05 3:29
Seeker0128-Mar-05 3:29 
GeneralRe: WinRadio DLL for VB6 Pin
Anonymous7-Apr-05 3:56
Anonymous7-Apr-05 3:56 
Generaltest Pin
JoeSox22-Mar-05 3:50
JoeSox22-Mar-05 3:50 
GeneralRe: test Pin
toxcct23-Mar-05 23:38
toxcct23-Mar-05 23:38 
GeneralRe: test Pin
ThatsAlok13-Apr-05 19:07
ThatsAlok13-Apr-05 19:07 
Generaltest Pin
JoeSox21-Mar-05 16:30
JoeSox21-Mar-05 16:30 
Generaln-tier application Pin
Blue_Skye14-Mar-05 6:39
Blue_Skye14-Mar-05 6:39 
GeneralWriting a beginner Guide Pin
ACorbs8-Mar-05 15:07
ACorbs8-Mar-05 15:07 
GeneralMixer: open-source audio mixing software for Windows Pin
ckorda2-Mar-05 6:27
ckorda2-Mar-05 6:27 
GeneralNeed some guidance for potential C# article on a LOGO-style Turtle class Pin
Emma Burrows25-Feb-05 6:39
Emma Burrows25-Feb-05 6:39 
GeneralRe: Need some guidance for potential C# article on a LOGO-style Turtle class Pin
Marc Clifton27-Feb-05 14:32
mvaMarc Clifton27-Feb-05 14:32 
GeneralPhone in USA Pin
yaca15-Feb-05 20:57
yaca15-Feb-05 20:57 
GeneralTest Video Poker App (ASP.NET) Pin
bob.martin15-Feb-05 10:21
bob.martin15-Feb-05 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.