Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

NEED IT FAST!! UDP Send/Listen

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
brainware
Asked:
brainware
  • 6
  • 4
  • 3
1 Solution
 
FrodoBegginsCommented:
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
 
FrodoBegginsCommented:
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
 
brainwareAuthor Commented:
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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

Thanks!
0
 
FrodoBegginsCommented:
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
 
FrodoBegginsCommented:
Forgot to tell you... You need
Borland Delphi 5
Francois Piette's ICS
0
 
brainwareAuthor Commented:
you gonna email this project or what???

EMAIL:

 brainware@cyberjunkie.dk
0
 
DelFreakCommented:
Froddo, I haven't received the project yet.

Send it to delfreak@thedoghousemail.com

Thanks!
0
 
DelFreakCommented:
Oops! My mistake, I have it already. Thanks!

Now I'll check it out. Hehehe...
0
 
brainwareAuthor Commented:
sams im not gonna get it tho i freaking asked for it hehe..
0
 
FrodoBegginsCommented:
Sorry, brainware. I have message delivery failure. I'm trying to send it again....
0
 
FrodoBegginsCommented:
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
 
brainwareAuthor Commented:
File Recieved! thx..

Sorry about your grandfather..

Regards
 Michael
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 6
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now