Forum: C++ Jul 29th, 2009 |
| Replies: 0 Views: 262 Hey, I've been stuck on this for a long time now and ive tried various things...
i need to send multiple packets to a server for an infinite amount of time at an unknown rate, maybe 1 packet every... |
Forum: C++ Jun 28th, 2009 |
| Replies: 9 Views: 642 yea, i ended up coming across it and fixing it... i think it was a delete vs delete[] statement somewhere |
Forum: C++ Jun 22nd, 2009 |
| Replies: 2 Views: 353 thanks! that worked great...
you just know the answer to everything dont you? |
Forum: C++ Jun 22nd, 2009 |
| Replies: 2 Views: 353 Hey, Im using readprocessmemory to get information on a game, but for some reason it skips two bytes..
part of my structure is similar to
WORD a;
DWORD b;
DWORD c;
DWORD d; |
Forum: C++ Jun 15th, 2009 |
| Replies: 9 Views: 642 i think i figured it out... im using System::string (m$) and i called delete [] String
yea... this is the first major app ive done in c++ |
Forum: C++ Jun 14th, 2009 |
| Replies: 9 Views: 642 hey, thanks for your response. Unfortounately i am developping for/on windows... however i did add a null byte to the end of a char* i was using strlen on. so far no crashes.. but they werent too... |
Forum: C++ Jun 13th, 2009 |
| Replies: 9 Views: 642 its a really long program, and im not sure where the error is coming from. |
Forum: C++ Jun 13th, 2009 |
| Replies: 9 Views: 642 Hey, Ive been working on a program for a while, and once in a while it will crash for an unknown reason. I checked the error log and it says exception 0xc0000005 which means i'm writing somewhere i... |
Forum: C++ May 24th, 2009 |
| Replies: 0 Views: 511 Hey,
I need help keeping a http connection alive.
I have used setsockopt to set keepalive to 1, and in the http packet i set keep-alive to 300, but the server replies with:
Connection: close
... |
Forum: C++ May 19th, 2009 |
| Replies: 9 Views: 733 there is no more code- than what ive posted
void connectSock(){
psock.sockVer = MAKEWORD(1, 1);
psock.ic=false;
WSAStartup(psock.sockVer, &psock.wsaData);
char url[512];... |
Forum: C++ May 19th, 2009 |
| Replies: 9 Views: 733 so i rewrote it without the threads, but i still get the rst issue i first got
i send 2 packets and on the 3rd it replies with rst... any thoughts on why? |
Forum: C++ May 18th, 2009 |
| Replies: 9 Views: 733 i need to send traffic at random times. the packets are gathered as the user interacts
if i create a new socket when i want to send i get an error saying the socket is in use, and im using threads... |
Forum: C++ May 15th, 2009 |
| Replies: 9 Views: 733 since nobody seems to be able to help me can someone give me an example of what im trying to do?
(beej doesnt help)
or point me somewhere they can help me? |
Forum: C++ May 13th, 2009 |
| Replies: 6 Views: 265 maybe use a helper method to get the values |
Forum: C++ May 13th, 2009 |
| Replies: 5 Views: 318 where do you call simplify? |
Forum: C++ May 12th, 2009 |
| Replies: 9 Views: 733 void setPort(String ^port){
connectSock();
P.port=To_string(port);
args.param="";
_beginthread(sendHTTP,0,&args);
args.param="newmap=1";
_beginthread(sendHTTP,0,&args);
} |
Forum: C++ May 12th, 2009 |
| Replies: 9 Views: 733 Hey, I wrote some code to send http (see below) and i get a connection error 10056 which means its already connected. However on wireshark i see rst packets from the server, and it doesnt send a... |
Forum: C++ May 7th, 2009 |
| Replies: 4 Views: 321 ive looked at that
doesnt really help me with my questions... |
Forum: C++ May 7th, 2009 |
| Replies: 4 Views: 321 |
Forum: C++ May 7th, 2009 |
| Replies: 4 Views: 321 Hey
Im writing a program that needs to send data over http, sometimes 45 minutes between packets, sometimes 10 seconds. I noticed that when i shut the server down it sends a lot of fin packets... so... |
Forum: C++ Apr 28th, 2009 |
| Replies: 1 Views: 179 I have a program that uses http to send information to a remote server... should i be worried about bandwidth if it sends one http packet per player?
basically when a person finishes a game it send... |
Forum: C++ Apr 24th, 2009 |
| Replies: 4 Views: 337 i mean like when a process freezes on windows and it gives the message about the program not exiting cleanly. But it keeps the process open, and i dont want that if its using all of my cpu |
Forum: C++ Apr 24th, 2009 |
| Replies: 4 Views: 337 this also happens on win7 |
Forum: C++ Apr 24th, 2009 |
| Replies: 4 Views: 337 i have some code to kill a process
TerminateProcess((HANDLE)sinfo->process->Handle, 0);
what happens is so the process freezes and starts eating up the processor... so i i try to terminate it,... |
Forum: C++ Apr 11th, 2009 |
| Replies: 5 Views: 1,026 so should i call this from another class?
like player p;
_beginthread(p.OpenProc,0,NULL); ?
i need it to not be static so i can access all the variables... |
Forum: C++ Apr 11th, 2009 |
| Replies: 5 Views: 1,026 So im using this code to start a thread...
namespace Monitor4vc {
public ref class Stats
{
public:
Stats()
{
} |
Forum: C++ Apr 10th, 2009 |
| Replies: 6 Views: 977 |
Forum: C++ Apr 10th, 2009 |
| Replies: 6 Views: 977 that doesnt help....
so when i make that struct a ref struct it gives me the "mixed code" error on the char array
ref struct Playernew
{
char name[11];
signed short kills;
signed short... |
Forum: C++ Apr 10th, 2009 |
| Replies: 6 Views: 977 this is giving me an error (example)
struct Playernew
{
char name[11];
signed short kills;
signed short assists;
signed short betrays; //+suicide--cf74
signed short deaths;//cf76
signed... |
Forum: C++ Apr 9th, 2009 |
| Replies: 6 Views: 977 Is there any way to mix visual c++ with normal c++?
like can i enable mixed code?
i want to get rid of this error:
1>tab.h(32) : error C4368: cannot define 'p' as a member of managed... |
Forum: C++ Apr 7th, 2009 |
| Replies: 2 Views: 339 I fixed it by using _beginthread |
Forum: C++ Apr 7th, 2009 |
| Replies: 2 Views: 339 I need a nonblocking socket so in an older version of the program i made a new thread to do this. and now that ive migrated into visual c++ it crashes with no explination... yea im really... |
Forum: C++ Apr 6th, 2009 |
| Replies: 4 Views: 2,000 how do i get the thread id? |
Forum: C++ Apr 6th, 2009 |
| Replies: 4 Views: 2,000 Hey
so as i mentioned here http://www.daniweb.com/forums/post840142.html i need to check if a process is responding by using sendmessage
however i have no idea how to get the hwnd because i start... |
Forum: C++ Apr 5th, 2009 |
| Replies: 4 Views: 897 |
Forum: C++ Apr 5th, 2009 |
| Replies: 4 Views: 897 Hey, I want to check if a program is frozen by using send message..
what message should i send it? and will this work?
like could i send it something random like 0xFFFC? |
Forum: C++ Mar 18th, 2009 |
| Replies: 2 Views: 290 |
Forum: C++ Mar 18th, 2009 |
| Replies: 2 Views: 290 how do i find methods in a .exe so i can create a dll injection that uses those methods? |
Forum: C++ Dec 13th, 2008 |
| Replies: 1 Views: 294 Hey, so basically i need to decrypt/encrypt traffic on a specific port on my computer. How can i capture incoming/outgoing packets and manipulate them? |
Forum: C++ Nov 14th, 2008 |
| Replies: 0 Views: 303 Hey all,
I want to write a proxy for a local computer
Basically i run a game server that talks [udp] to multiple people. However the server can be crashed. I want to write a program that captures... |