Solved

NEED IT FAST!!  UDP Send/Listen

Posted on 2001-06-13
13
364 Views
Last Modified: 2010-04-06
I need a sample of using a UDP that listen for a pack eg could be a Bitmap,
eg. a application SENDS the file and the other just recieve it.

what i wish to use it for is:

CLIENT - PrintScreen or other hotkey and i send Image/Screen info to the Server.

SERVER - get the image and process it..

i need to do some Image Analyze from a few things and this would be usefull for me to be able to stay in program/game while i can see on server what it found..

i want it using FPIETTE WSocket!

0
Comment
Question by:brainware
  • 6
  • 4
  • 3
13 Comments
 
LVL 2

Expert Comment

by:FrodoBeggins
Comment Utility
I have such project. Client and Server, the Client sends a command, the server executes it. I use it basicaly for picture exchange, but I've implemented "screen" command for capturing the screen. I can e-mail the project group to you
0
 
LVL 2

Expert Comment

by:FrodoBeggins
Comment Utility
The screen capture itself works very fast. I use bitblt() API function to get the whole screen and in just a moment i have it in BMP. After that I convert it to JPG for faster delivery (it becomes much smaller than the 2 MB bitmap) and just a second after the command SCREEN the client sees the screen of the server. I have some extras like progressbar and others ;-)
0
 
LVL 2

Author Comment

by:brainware
Comment Utility
ok.. ill take a look...
Delphi 5 ?? dont have d6..

brainware@cyberjunkie.dk

if you have any good UDP samples for example

Deticated Server
Client

software usage is ok.. but im gonna try use for game later.. but else as Question here was all about the Picture that is what you get this points for!
0
 

Expert Comment

by:DelFreak
Comment Utility
Frodo Beggins, Can you send me the project too. My e-mail address is delfreak@thedoghousemail.com

Thanks!
0
 
LVL 2

Accepted Solution

by:
FrodoBeggins earned 250 total points
Comment Utility
You have it :)
Compile the server and the client. Start them somewhere. The server has an edit box for selecting the port. The client has edit boxes for selecting the server address and the port. After that just press "Connect", write any command in the command edit box and press Send. Available commands (case insensitive):
    DUMP - sends back queries dump
    LIST - Sends list of all images at the server's folder
    GET filename - get any file. After you receive it it will be displayed at the imagebox. You can save it with the "Save" button
    SCREEN - get a screenshot
    There is a PING button which starts a thread, in which the Client pings the server. Press it again to stop the thread.

    Remember, it's just a sample. And don't be afrait to bother me with questions :)
0
 
LVL 2

Expert Comment

by:FrodoBeggins
Comment Utility
Forgot to tell you... You need
Borland Delphi 5
Francois Piette's ICS
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Author Comment

by:brainware
Comment Utility
you gonna email this project or what???

EMAIL:

 brainware@cyberjunkie.dk
0
 

Expert Comment

by:DelFreak
Comment Utility
Froddo, I haven't received the project yet.

Send it to delfreak@thedoghousemail.com

Thanks!
0
 

Expert Comment

by:DelFreak
Comment Utility
Oops! My mistake, I have it already. Thanks!

Now I'll check it out. Hehehe...
0
 
LVL 2

Author Comment

by:brainware
Comment Utility
sams im not gonna get it tho i freaking asked for it hehe..
0
 
LVL 2

Expert Comment

by:FrodoBeggins
Comment Utility
Sorry, brainware. I have message delivery failure. I'm trying to send it again....
0
 
LVL 2

Expert Comment

by:FrodoBeggins
Comment Utility
I just learned my grandfather died that night. So now I'm going home and i will not be connected until monday. (tomorow is the funeral). I don't like to leave something unfinished, but... Brainware, if you don't receive my mail (I've sent it already), please say it here. And you, DelFreak, please forward it if needed. Both you feel free to use/modify the code. I'll be glad if I receive better version (not obligatory).

Be back in Monday
FrodoBeggins
0
 
LVL 2

Author Comment

by:brainware
Comment Utility
File Recieved! thx..

Sorry about your grandfather..

Regards
 Michael
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now