Solved

NEED IT FAST!!  UDP Send/Listen

Posted on 2001-06-13
13
379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

617 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