Jump to content
Sign in to follow this  
paulE123

compare stuff on a server

Recommended Posts

paulE123

hi there,

im pretty new to autoit so i need your help :P

so my goal is to make a program that connects to a server and compares a string (a link) with a .txt on the server....

if the string is in the .txt the server should tell the client that the string is already in the .txt.

if the string ist not in the .txt the server should add it (to the .txt) and tell the client the string was added.

i tried a lot but i have some problems.... mostly with the answer(e.g.:"Yes the link is in the .txt!" "No the link ist not!") form the server to the client

thanks for help!

paulE

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

When you talk about "connect to a server" do you talk about a server on a company network (accessible using a share) or a server on the internet (hence you would need FTP, HTTP or a client/server application using TCP/IP)?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
paulE123

:o sry i forgot the most important thing....

im using TCP/IP with a server on the internet

Share this post


Link to post
Share on other sites
water

Which services are available on the server (HTTP, FTP ...)?

How large is the file we are talking about?

Is this file accessed by many users simultaneously?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
paulE123

why http, ftp ?

i think tcp is best for client to server ?

the files are internet-links and yes its used simultaneously

Share this post


Link to post
Share on other sites
water

"TCP/IP is the internet layer (IP) that connects local networks, thus establishing internetworking plus the transport layer (TCP) that handles host-to-host communication.

The application layer (for example HTTP) contains all protocols for specific data communications services on a process-to-process level."

That's how wikipedia describes it.

I would say: TCP/IP, HTTP and FTP are members of the Internet protocol suite.

If you can install programs on the server then you could write your own client/server application.

If you can't you need to work with what the server provides (HTTP, FTP ...)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
paulE123

i want to write my own client/server application with tcp/ip like TCPListen(), TCPAccept(), TCPSend(),....

i thought i wrote it in my first post but maybe it was incomprehensible... sorry my english isnt that good....

Share this post


Link to post
Share on other sites
water

When you search the forum for "client server" you'll find a lot of threads. you find the code for a simple client and server script.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
FireFox

Hi paulE123,

Then yo go, don't forget the help file too ;)

Dam... the water is faster than a fox in fire.

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
paulE123

thank you!^^

Share this post


Link to post
Share on other sites
water

@FireFox,

I would stick with your examples because the comments you added describe how it works and help a great deal when it comes to modify the scripts.

  • Like 1

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×