FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Lan chat
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Lan chat
Posted: Sat Mar 19, 2016 10:19 AM

How I can create a Lan chat using the net ( IP) ?
the chatter class not run ok and I tried also with server(client sample ( tsocket perhaps have problems)
are there function of NetApi.lib ( bcc7)

i found

https://github.com/SpectraLogic/samba/t ... localgroup

https://github.com/SpectraLogic/samba/t ... lib/netapi

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Lan chat
Posted: Sat Mar 19, 2016 11:43 AM

a sample chat c++

https://github.com/yangsu/simple-chat
how converte to fwh ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 11
Joined: Mon Jun 29, 2015 08:16 PM
Re: Lan chat
Posted: Sun Apr 03, 2016 06:09 PM
Dispite the long time, I hope it is not too late.

Plese download and test the program I am developing for LAN chat, called "batepapo" (chat, in Brazil).
If you (or anybody else) improve it, please post the changes.

http://www.arsoft-ap.com.br//fd456406745d816a45cae554c788e754/08dc2d813326fd8ac79eb734d96b56ff/batepapo.zip

Improvements I expect:

• Different colors and font styles on Chat (to look like Skype or Whatsapp);
• Socket communication, instead of saving in DBF as it is done at present.
[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]

FWH1206 / XHB121 / BCC582 / RESOURCE WORKSHOP / XDEVSTUDIO

Please visit: arsoft-ap.com

[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Lan chat
Posted: Mon Apr 04, 2016 09:45 AM
Thanks,
Can you explain how use it on lan ?

I think a Socket communication we can use tsocket class ( sockcli.prg and sockserv.prg)

But in these many years I use (x)fw(h) I not Know also how create a small chat

Are there some Gurus here ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 11
Joined: Mon Jun 29, 2015 08:16 PM
Re: Lan chat
Posted: Mon Apr 04, 2016 04:21 PM

How to test the program:

• Select a computer to use as server. Create a folder for the program data: I.E: C:\BATEPAPO\DATA;
• Shared the folder, allowing read and write, for all users;
• At first time you run the batepapo.exe in each computer, you have to select the data folder. Just selec the folder you shared.
• After selecting the folder, you have to provide a name for the user. The computer name will be sugested, but you can change it provided there is no similar name already defined.

After fallowing these steps, batepapo will run and detect the online users. Just click on a user to chat with.

[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]

FWH1206 / XHB121 / BCC582 / RESOURCE WORKSHOP / XDEVSTUDIO

Please visit: arsoft-ap.com

[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]

Continue the discussion