Jump to content



Photo

Chatserver - Simplified.


  • Please log in to reply
14 replies to this topic

#1 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 25 May 2007 - 09:18 AM


Thought i wanted to share a simple chatserver i made.

Uppdate: added zip to download.

Chatserver - Simplified V.1.7

Note: if you want to edit the port server will be running on change settings on line 19 example under.
Dim $server[4] = [SERVER-IP,PORT,Max_length_tcp_recive,MAX_concurrent_connections] ;[Server-IP,Port,Max_length_tcp_recive,Max_clients]

Features:
<*>telnet server-ip to connect.
<*>Show message of today on connect.(motd.txt can be modified on the fly, no need to restart server.)
<*>Register to use.(users registeded inn users.ini)
<*>Login to speech.
<*>Broadcasts userlogins to everyone, aswell as logout.
<*>Only 1 login per username.
<*>Send messages to everyone.
<*>Send private messages, to other users.
<*>Setstate, sets your current state afk, surfing etc... (Message is broadcasted and visible when listall command is used)
<*>Listall, lists all user currently logged on.
<*>Listchat, lists log over old chat.(only public chat)
<*>help, works the same way as motd, where you are able to edit help.txt while server is running.
<*>supports 99 concurrent connections. edit $server[3] to change.

Known bugs:
<*>If you try to login after you have allready logged on, server still thinks you are the same as before you tried to login again.


I basicly wanted to learn how to use socket server and handling different sockets with diferent variables at once.
Server code based off dnsi's AU3 MultiConnect-Socket Server! found here.


rar-file contains, everything needed to understand how users.ini, motd.txt and help.txt file work.

Link to EXE as requested by Javascript_Freek

Attached Files


Edited by jokke, 06 June 2007 - 09:37 AM.

UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image







#2 Cyber

Cyber

    Polymath

  • Active Members
  • PipPipPipPip
  • 215 posts

Posted 25 May 2007 - 09:20 AM

Great!!
Fantastic! :)
Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key

#3 Gif

Gif

    Laikon Kafekoption

  • Active Members
  • PipPipPipPipPipPip
  • 1,117 posts

Posted 25 May 2007 - 10:41 AM

cool!!!

#4 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 25 May 2007 - 10:47 AM

Thanks guys :)

Redoing the code now, a few hours and i have a working IRC server :)
after abit consideration im going to wait abit with the IRC server, since i have alot other things to do this weekend, ill do it when im at work

Edited by jokke, 25 May 2007 - 02:30 PM.

UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image

#5 A. Percy

A. Percy

    VW Sedan user

  • Active Members
  • PipPipPipPipPipPip
  • 561 posts

Posted 25 May 2007 - 12:53 PM

I liked it. Good work!
Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator

Posted Image VW Bug userPosted Image

Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

#6 JavaScript_Freek

JavaScript_Freek

    Oldie but never advanced.

  • Active Members
  • PipPipPipPipPipPip
  • 318 posts

Posted 27 May 2007 - 01:40 AM

.exe plz!

im on a guest so i can download autoit or WinRar

#7 Sn0opy

Sn0opy

    Wayfarer

  • Active Members
  • Pip
  • 62 posts

Posted 27 May 2007 - 08:08 PM

to fix your problem, you could write into the users.ini anything like
"$connected = 1". Now just create an if-answer if $connected is 1 or 0. If 1, the user
can't connect.

And, is it possible, to change the Port, users connect to? I'm behind a router and I can't open more ports.

Edited by Sn0opy, 27 May 2007 - 08:10 PM.


#8 WeMartiansAreFriendly

WeMartiansAreFriendly

    Where's the kaboom?

  • Active Members
  • PipPipPipPipPipPip
  • 1,245 posts

Posted 28 May 2007 - 05:17 AM

checking it right,

for now on could you please archive your scripts in something other than rar. zip is more widely supported.
Posted ImageDon't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

#9 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 28 May 2007 - 11:56 PM

Javascript_Freak: sorry wont add a exe, since most ppl dont like them, its best to just stick to the source.

Sn0opy: Change Server[1] at line 19 to change the port server will be running on.

mrRevoked: thanks added zip on the list of download options.
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image

#10 JavaScript_Freek

JavaScript_Freek

    Oldie but never advanced.

  • Active Members
  • PipPipPipPipPipPip
  • 318 posts

Posted 29 May 2007 - 02:13 AM

pleeeae! IM GUEST AND cant download AutoIt. So I can not run au3's. PLEASE MAKE A .EXE!!!!! PLEASE GOD~!!! PRETTY PLEASE

#11 JavaScript_Freek

JavaScript_Freek

    Oldie but never advanced.

  • Active Members
  • PipPipPipPipPipPip
  • 318 posts

Posted 31 May 2007 - 05:50 PM

Yes It doesn't work... when I click on the .au3... nothi ng happens.

#12 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 02 June 2007 - 10:26 AM

pleeeae! IM GUEST AND cant download AutoIt. So I can not run au3's. PLEASE MAKE A .EXE!!!!! PLEASE GOD~!!! PRETTY PLEASE


Iwe added .EXE as a link inn the first post, or use this link.
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image

#13 LowKey

LowKey

    Seeker

  • Active Members
  • 13 posts

Posted 15 December 2007 - 04:00 AM

Hey, sry for the necropost, but im thinking, could this be used to create a MUD server? I'm looking to create my own MUD and need somewhere to start.
~T3CHM4G3~PROjECTS: Telnet Client

#14 JustinReno

JustinReno

    My custom made Vortex.

  • Banned (NOT IN USE)
  • 2,330 posts

Posted 15 December 2007 - 04:03 AM

HelpFile?

#15 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 20 December 2007 - 07:15 PM

I have thought about creating a MUD myself. I actually made engine for combat,stats,map,inventory. (based on this chat server) but where unable to come upp with a good storry.

If i where to write another MUD i would use another server, or atleast rewrite it so it would create a new process for each connection, for faster responce.
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users