Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently October 5th, 2024, 4:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Instant messaging application creation
PostPosted: November 12th, 2005, 8:40 pm 
Offline

Joined: December 22nd, 2004, 10:00 am
Posts: 28
Opus: Opus Pro 7.5
OS: Windows 7 32 bit on BootCamp
System: MacBook Pro, 3 GBytes RAM, Core2Duo T8300@2.4 GHz,
Dear sir,

I need to make a simple instant messaging / chat application with Opus Pro 04.

I was thinking of something like this:

Computer A runs a web server and an Opus Pro 04 application for the Chat "server".
Computer B runs a web server and an Opus Pro 04 application for the Chat "server".


The reasons for having web servers is that I cannot find any other way for two Opus apps to communicate through a network without having a web server, correct me if I am wrong.

Computer B:
User types a text message.
Application sends this as a variable to the Computer A web server.
Server PERL or PHP script accepts this variable and writes it to a file.

Computer A:
Application is monitoring the changes on the above file.
If changes are detected, file is read and appears on application screen.

Exactly the opposite is done for reverse direction.

How am I doing? Any simpler method?
Please comment.

Thanks

Dennis Zervas


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 14th, 2005, 11:00 am 
Offline

Joined: October 25th, 2004, 12:32 pm
Posts: 397
Location: Digital Workshop
There is a simple way to do this over a network.

One way I have done this is to have a txt file on a server share.
I created a publication that reads the text file ever 5 Seconds into a variable. The variable is displayed on the screen. When you want to post a message there is a text input box that saves your message to a variable. An action on a send button simple amends the variable to the text file. In our example we had the user pick a name at start up and this variable was added to the message text to be saved to the txt file.


We tested it here at DW and at one point had about 10 users chatting away without any problems.

Regards


Brenden Knifton


Top
 Profile Visit website  
 
 Post subject: Server share -
PostPosted: November 14th, 2005, 10:09 pm 
Offline

Joined: December 22nd, 2004, 10:00 am
Posts: 28
Opus: Opus Pro 7.5
OS: Windows 7 32 bit on BootCamp
System: MacBook Pro, 3 GBytes RAM, Core2Duo T8300@2.4 GHz,
Dear Mr. Knifton,

many thanks for your reply. \

can you clarify the "server share"?

Is this a directory on the server that is shared?
If yes, this would only work on the same network, not in different networks that are routed, right?
Could this be a network drive?

Regards

Dennis Zervas


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 15th, 2005, 10:14 am 
Offline

Joined: October 25th, 2004, 12:32 pm
Posts: 397
Location: Digital Workshop
Quote:
can you clarify the "server share"?

Is this a directory on the server that is shared?


YES

Quote:
If yes, this would only work on the same network, not in different networks that are routed, right?


This depends on the way your networks are set up. If the end user has access to the shared folder on the server then there is no reason why this should not work.


Quote:
Could this be a network drive?


The way I did it was to map a network drive which is a folder share on the server that all users have permisions to read and write to.


Regards

Brenden Knifton


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group