Search found 35 matches

by Effigy
Fri Oct 27, 2006 2:33 am
Forum: Coding Questions
Topic: Network Packet Delivery
Replies: 11
Views: 3406

Apparently I was just very confused on how the buffers for the Netowrk delivery work... I seem to have found a solution...

Thanks for the suggestions...
by Effigy
Thu Oct 26, 2006 4:25 am
Forum: Coding Questions
Topic: Network Packet Delivery
Replies: 11
Views: 3406

Has anyone been able to test this code over the Internet. I would love to get some testers to see if the problem isn't a local issue. Again you need to test it over the Internet to see the problem. It works fine over a local network.

Thanks for testing...
by Effigy
Tue Oct 24, 2006 4:45 am
Forum: Coding Questions
Topic: Network Packet Delivery
Replies: 11
Views: 3406

Yes everyone should just ignore question 1... That was not clear and it is just a symptom of the problems I am having.

As for delay... I have used it in the loops... I just forgot to add it to this example. Plus the Max size of the package I'm sending is much smaller than the receive buffer so I ...
by Effigy
Tue Oct 24, 2006 2:58 am
Forum: Coding Questions
Topic: Network Packet Delivery
Replies: 11
Views: 3406

SOme Code for you.. Bassically I'm just pulling a screenshot zipping it and sending it over the network. You will need the purezip librabry installed.

This code works with 127.0.0.1 but does not work over the internet. I get a corrupted screenshot. Some of it is sometimes visible.

Source for ...
by Effigy
Mon Oct 23, 2006 3:08 pm
Forum: Coding Questions
Topic: Network Packet Delivery
Replies: 11
Views: 3406

Thanks for the replies... I'm now looping through the code which is working (Kind of).

If I'm sending the packets locally to my computer it works great...

However if I send them over the Internet something weird happens.

I'm checking the results with ReceiveNetworkDatag. This command is supposed ...
by Effigy
Sun Oct 22, 2006 5:58 pm
Forum: Coding Questions
Topic: Network Packet Delivery
Replies: 11
Views: 3406

Network Packet Delivery

I don't have any code to show for this yet however, before I get an example together I would like to ask a question.

I'm running into some problems with netoroking in PB.

1. When I'm running a server sometimes I receive a Long negative integer when I'm receiveing RAW data. I can force this to ...
by Effigy
Thu Mar 23, 2006 7:31 pm
Forum: Coding Questions
Topic: Directx 8 Screen Capture
Replies: 6
Views: 4322

Directx 8 Screen Capture

Hello all... I have been working on a screen capture program, but I'm having some issues with the GDI method of Capturing the screen. Basically it's too slow. ABout 50MS to get the screen from memory.

I have heard the Directx Method of capturing is much faster, the problem is I'm no Direct X Guru ...
by Effigy
Mon Mar 13, 2006 4:20 pm
Forum: Coding Questions
Topic: Extract Binary Data From Word Value
Replies: 5
Views: 1713

Thanks for the help... I still don't understand completely why this works... anyway...

So using the same method how would I get three RGB values to go back into a long value.

Example:
Red=128
Blue=255
Green=255

FinalColorValue=$80FFFF
by Effigy
Sun Mar 12, 2006 8:31 pm
Forum: Coding Questions
Topic: Extract Binary Data From Word Value
Replies: 5
Views: 1713

Extract Binary Data From Word Value

I'm trying to extract integer values from a Binary Sequence.

For Example.

Say We have the Number 26458 in binary this looks like
110011101011010
I need to seperate the binary data into 3 Chunks each of five ex.
11001 11010 11010

This then needs to convert to
25, 26, 26 the integer values of each ...
by Effigy
Fri Mar 03, 2006 12:13 am
Forum: Coding Questions
Topic: PNG Encode
Replies: 5
Views: 2514

Update !!!

I've figured out the problem with the BriefLZ example. Both the client and the server need to be at the same screen resolution. Maybe someone should have mentioned that in the example code.

Anyway this should help someone in the future.

If anyone has had some experience using the ...
by Effigy
Thu Mar 02, 2006 10:08 pm
Forum: Coding Questions
Topic: PNG Encode
Replies: 5
Views: 2514

I was taking a look at the PBOSL Breiflz Client, Server example as it is doing basically what I want to do, but a lot of the comments and debug notes are in German and I can't get a screenshot to come across properly.

Does anyone else have problem with that example or can fix it for me? PB 3.94 is ...
by Effigy
Thu Mar 02, 2006 5:36 am
Forum: Coding Questions
Topic: PNG Encode
Replies: 5
Views: 2514

PNG Encode

Is it possiple to use saveimage() to encode a png to a memory address instead of saving it to a disk.

I have looked at using the libpng.dll but I'm sad to say it's a little complicated for me to figure it out right now.

Ultimately what I want to do is have my Image convert to a png and send it ...
by Effigy
Tue Feb 14, 2006 5:55 am
Forum: Coding Questions
Topic: SSL for PureBasic?
Replies: 6
Views: 2730

Sorry about my last post... I see you are using winint.dll. I spent a few minutes looking at your problem and I think I have a soultion.

Here is the code...
; ; All stuff for the WinInet lib.
;

#INTERNET_OPEN_TYPE_DIRECT = 1
#HTTP_ADDREQ_FLAG_ADD = $20000000
#HTTP_ADDREQ_FLAG_REPLACE ...
by Effigy
Tue Feb 14, 2006 4:51 am
Forum: Coding Questions
Topic: SSL for PureBasic?
Replies: 6
Views: 2730

If you send a get in the URL of an SSL connection for example https://www.mysite.com/index.php?id=3 (not a real url!)

I would expect the reply to be in SSL, which would mean you would have to decrypt it, or initialize the connection with open ssl dll's.

But as I've never done this, it's just a ...
by Effigy
Wed Oct 05, 2005 10:05 pm
Forum: Coding Questions
Topic: Buffer Overflow
Replies: 8
Views: 2310

Great Info,

Thanks all, it would be still cool to see how a buffer overflow can lead to remote execution. But I now have a great place to start securing my program.

Thanks alot!

PS. I'm writing a program that extends the usefullness of WINVNC SC the sc stands for single click. If you haven't used ...