Solved

NEED IT FAST!!  UDP Send/Listen

Posted on 2001-06-13
13
369 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
ID: 6189639
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
ID: 6189649
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
ID: 6189860
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Expert Comment

by:DelFreak
ID: 6190003
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
ID: 6190123
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
ID: 6190146
Forgot to tell you... You need
Borland Delphi 5
Francois Piette's ICS
0
 
LVL 2

Author Comment

by:brainware
ID: 6193142
you gonna email this project or what???

EMAIL:

 brainware@cyberjunkie.dk
0
 

Expert Comment

by:DelFreak
ID: 6193866
Froddo, I haven't received the project yet.

Send it to delfreak@thedoghousemail.com

Thanks!
0
 

Expert Comment

by:DelFreak
ID: 6193875
Oops! My mistake, I have it already. Thanks!

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

Author Comment

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

Expert Comment

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

Expert Comment

by:FrodoBeggins
ID: 6194156
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
ID: 6194350
File Recieved! thx..

Sorry about your grandfather..

Regards
 Michael
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 275
Convert Jpg /PNG To GIF 5 137
Process Javascript errors with Delphi TWebBrowser 1 137
Firemonkey allowing RTL on android 6 33
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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