LAN User Messaging Service

LAN User Messaging Service

Postby RiazKhan » Fri Jan 08, 2016 11:39 am

Dear All,

Does anyone have a working sample of text messaging users currently using a multi user application over a local network ? Users need to message other users over a LAN.

Any suggestions.....Thanks
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: LAN User Messaging Service

Postby MarcoBoschi » Fri Jan 08, 2016 12:21 pm

How it should work?
Such as post it
http://downloadcentral.no/upload/screenshot3132-0.jpg

? I did one for multple users.
Such as an email program?
Telegram? Whatsapp?
User avatar
MarcoBoschi
 
Posts: 1066
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: LAN User Messaging Service

Postby RiazKhan » Fri Jan 08, 2016 1:07 pm

Hi Marco..

Perhaps, like whatsapp..

The system should work on hot key within the multiuser application.

Should list the active logged in users.

Select a user...and start a conversation

No need to save the conv

A very simple service..just type n send...

Thnx



Sent from my GT-N7105T using Tapatalk
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: LAN User Messaging Service

Postby TimStone » Fri Jan 08, 2016 3:53 pm

I built a messaging service into my application several years ago. However, it does not locate who is signed on, nor does it do alerts.

Users are placed in one file. When sending a message, the To box is a dropdown, so they select the users. I did this because some messages can then be sent to people who are not signed on, but they can get it when they return to their computer.

Using a Memo edit, messages are created and stored in a database on the server.

When someone is at their computer they can then check for their messages.

System level alerts would be a nice capability. I'll be looking at that in the coming weeks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2945
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: LAN User Messaging Service

Postby RiazKhan » Fri Jan 08, 2016 5:19 pm

Yeh..thnx Tim,
Good idea..would be nice to have system alerts plus listing of currently logged on users..There must be a library for this routine. Im searching.
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: LAN User Messaging Service

Postby TimStone » Fri Jan 08, 2016 5:37 pm

It should be a handle into the Windows notification system. Probably pretty available in Win 10 with it's notification icon on the task bar.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2945
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: LAN User Messaging Service

Postby Antonio Linares » Mon Jan 11, 2016 4:08 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: LAN User Messaging Service

Postby Antonio Linares » Mon Jan 11, 2016 4:15 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: LAN User Messaging Service

Postby Antonio Linares » Mon Jan 11, 2016 4:16 pm

Not sure if we can use it from C language unless we find a C example. I only found C++ examples

Another choice is to implement it in a cpp file but not sure if it will work with our used C compilers
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: LAN User Messaging Service

Postby Silvio.Falconi » Wed Jan 13, 2016 12:35 pm

Many year ago I remember was a CHAT class but it not run ok because the twebserv notwas ok
https://fivewin-contributions.googlecod ... HATTER.ZIP
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: LAN User Messaging Service

Postby RiazKhan » Wed Jan 13, 2016 12:47 pm

Thnx Silvio,
Will chk it out. Many many years back I was using netlib library for the same purpose..worked beautifully. Will post a few screen shots, later.
Regards
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: LAN User Messaging Service

Postby Silvio.Falconi » Sat Mar 19, 2016 8:46 am

RiazKhan,
CAN YOU PUBBLISH A TEST ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: LAN User Messaging Service

Postby ukoenig » Mon Jan 14, 2019 10:33 am

Any new infos about a solution ( working sample )
I would like to send a message to the station
that belongs to a network FLOCK - error
working on the same DBF.

I created a sample testing network - functions with messages and xBrowse copy functions using my network-toolbox.

A test trying to PACK a DBF opened on another workstation as well
is showing a error-message.

As well I would like to show inside the message a list of all users working on the same DBF in case of any network - error ( ZAP, PACK ...)

Image

regards
Uwe :?:
Last edited by ukoenig on Wed Jan 16, 2019 10:18 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: LAN User Messaging Service

Postby James Bott » Tue Jan 15, 2019 4:04 pm

Uwe,

You really shouldn't be doing zap, or pack except when you have exclusive use of the app. These should only be done by an admin when nobody else is using the app.

Better yet is to avoid these kinds of operations.

If you are using database objects, then my TData class has an optional TDataReuse class which reuses deleted records so you never have to do a pack. Or, you could try writing one yourself.

Either way, if you go one of the above routes, then you don't need messaging.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: LAN User Messaging Service

Postby Otto » Wed Jan 16, 2019 1:41 am

>Does anyone have a working sample of text messaging users currently using a multi user application over a local network ? Users need to message other users over a LAN.
Hello,
I use following function.
Best regards
Otto
Code: Select all  Expand view  RUN


function Benachrichtigung()
   *-----------------------------------------------
   local cRelauFle, hFile

   SysRefresh()
   *---------
   cRelauFle   := cFilePath( GetModuleFileName( GetInstance() ))+'\Benachrichtigung.Bat'
   hFile       := FCreate( cRelauFle, 0 )       // 0 Normal/Default,Read/Write
   if hFile >= 0
   
      FWrite( hFile, "msg " + ALLTRIM( users->user ) +  " " + ALLTRIM( users->pfad ) + ;
      " - Es gibt ein neues Update. Fuehren Sie bitte das Update aus.  " +CRLF )
      FWrite( hFile, "exit" + CRLF )
      FClose( hFile )
      SysRefresh()
      WAITRUN( cRelauFle, 0 )                   // 0 not show Cmd.exe Window, 1 yes

   endif
   *-----------------------------------------------
return NIL

//----------------------------------------------------------------------------//
 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 39 guests