Sponsored Content
Special Forums IP Networking can I use tomcat server for my chatting application? Post 302279983 by nsharath on Sunday 25th of January 2009 11:19:54 AM
Old 01-25-2009
Bug can I use tomcat server for my chatting application?

Hello,
I have a socket programming code to do chatting(both server and client).
But this is limited to a single machines with multi users.
But my target is to perform chat operation on multiple IP addresses in a given LAN in college.

Can you please tell me if I can use TOMCAT as my server to perform this.If yes, can you guide me how.If no, can you please tell me what other server can I use to suit this requirement !!!!

awaiting your reply !!!
 

10 More Discussions You Might Find Interesting

1. Linux

jsp not working on linux running tomcat server

hey there we cant seem to get jsp to load pages properly on linux running tomcat 4 server. everytime we run .jsp files, the source code comes up instead of the actual file contents. any suggestions?? cheers mile1982 (1 Reply)
Discussion started by: mile1982
1 Replies

2. UNIX for Dummies Questions & Answers

TomCat access in an Remote Linux Server

Hi all, I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too). //----------------------------------------------------------------// # ./startup.sh Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/ Using... (1 Reply)
Discussion started by: gothama
1 Replies

3. Shell Programming and Scripting

How to restart the tomcat server

hi, I need a command that restart the tomcat server. for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script. like using the grep and ps commands can i use?... (2 Replies)
Discussion started by: sankar reddy
2 Replies

4. Shell Programming and Scripting

Trouble getting consistent PID of tomcat server from ps

Hello all, I am working on a script to automate the process of restarting some tomcat servers. The versions of tomcat are pretty old and it often happens that they don't shut down gracefully and the PID needs to be manually killed. I am having a bear of a time getting a consistent PID from ps... (1 Reply)
Discussion started by: dkaplowitz
1 Replies

5. Programming

Need a little help in running jsp pages(Tomcat server).

Hi, I have installed following software on my linux machine. Is there anything else required to run jsp pages on linux machine? Please Help Here are some details that might be helpful. # lsb_release -a LSB Version: ... (3 Replies)
Discussion started by: pinga123
3 Replies

6. Shell Programming and Scripting

how to debug an expect script running on a tomcat server

Hello everyone, I have a small expect script as follows; #!/usr/bin/expect -f set force_conservative 0 ;# set to 1 to force conservative mode even if ;# script wasn't run conservatively originally if {$force_conservative} { set send_slow {1 .1} proc send {ignore arg}... (1 Reply)
Discussion started by: randeel
1 Replies

7. Solaris

Tomcat..Unable to deploy application remotely in tomcat

Hi, We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies

8. UNIX for Dummies Questions & Answers

Where is the best location to deploy an application on Tomcat over Linux?

Hi, I'm trying to figure out the best location to deploy an application on Tomcat over Linux server. The application structure is as follows: 1. WAR - the app itself. 2. conf - configuration files that are part of the product, not to be changed in deployment 3. local_conf - overriding... (0 Replies)
Discussion started by: moshebs
0 Replies

9. UNIX and Linux Applications

How to Monitor Tomcat App Server?

Tomcat stops logging intermittently for brief intervals of time like for 5 or 6 secs I wish to monitor if my Tomcat process gets stuck, hung or even shutdown or remains healthy at the time i see the problem of no logging. Can you please let me know how can i monitor Tomcat Application... (10 Replies)
Discussion started by: mohtashims
10 Replies

10. UNIX for Advanced & Expert Users

Building an apache-tomcat server

Hi, I have been assigned a task to build a server with these requirements : > has multiple tomcats running under the same apache. > tomcat & jdk has to be binded with apache. > latest openssl with all necesarry "mod" to bind with apache & tomcat. I am fairly new to... (1 Reply)
Discussion started by: anaigini45
1 Replies
picoirc(3tcl)						  Simple embeddable IRC interface					     picoirc(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
picoirc - Small and simple embeddable IRC client. SYNOPSIS
package require Tcl package require picoirc ?0.5? ::picoirc::connect callback nick url ::picoirc::post context channel message ::picoirc::splituri uri ::picoirc::send context line _________________________________________________________________ DESCRIPTION
This package provides a general purpose minimal IRC client suitable for embedding in other applications. All communication with the parent application is done via an application provided callback procedure. Each connection has its own state so you can hook up multiple servers in a single application instance. To initiate an IRC connection you must call picoirc::connect with a callback procedure, a nick-name to use on IRC and the IRC URL that describes the connection. This will return a variable name that is the irc connection context. See CALLBACK for details. This package is a fairly simple IRC client. If you need something with more capability investigate the irc package. COMMANDS
::picoirc::connect callback nick url Create a new irc connection to the server specified by url and login using the nick as the username. The callback must be as speci- fied in CALLBACK. Returns a package-specific variable that is used when calling other commands in this package. ::picoirc::post context channel message This should be called to process user input and send it to the server. A number of commands are recognised when prefixed with a for- ward-slash (/). Such commands are converted to IRC command sequences and then sent. ::picoirc::splituri uri Splits an IRC scheme uniform resource indicator into its component parts. Returns a list of server, port and channel. The default port is 6667 and there is no default channel. ::picoirc::send context line This command is where all raw output to the server is handled. The default action is to write the line to the irc socket. However, before this happens the callback is called with "debug write". This permits the application author to inspect the raw IRC data and if desired to return a break error code to halt further processing. In this way the application can override the default send via the callback procedure. CALLBACK
The callback must look like: proc Callback {context state args} { } where context is the irc context variable name (in case you need to pass it back to a picoirc procedure). state is one of a number of states as described below. init called just before the socket is created connect called once we have connected, before we join any channels close called when the socket gets closed, before the context is deleted. If an error occurs before we get connected the only argument will be the socket error message. userlist channel nicklist called to notify the application of an updated userlist. This is generated when the output of the NAMES irc command is seen. The package collects the entire output which can span a number of output lines from the server and calls this callback when they have all been received. chat target nick message type called when a message arrives. target is the identity that the message was targetted for. This can be the logged in nick or a chan- nel name. nick is the name of the sender of the message. message is the message text. type is set to "ACTION" if the message was sent as a CTCP ACTION system channel message called when a system message is received topic channel topic called when the channel topic string is seen. topic is the text of the channel topic. traffic action channel nick ?newnick? called when users join, leave or change names. action is either entered, left or nickchange and nick is the user doing the action. newnick is the new name if action is nickchange. NOTE: channel is often empty for these messages as nick activities are global for the irc server. You will have to manage the nick for all connected channels yourself. version This is called to request a version string to use to override the internal version. If implemented, you should return as colon delimited string as Appname:Appversion:LibraryVersion For example, the default is PicoIRC:[package provide picoirc]:Tcl [info patchlevel] debug type raw called when data is either being read or written to the network socket. type is set to read when reading data and write if the data is to be written. raw is the unprocessed IRC protocol data. In both cases the application can return a break error code to interrupt further processing of the raw data. If this is a read oper- ation then the package will not handle this line. If the operation is write then the package will not send the data. This callback is intended for debugging protocol issues but could be used to redirect all input and output if desired. SEE ALSO
rfc 1459 KEYWORDS
chat, irc CATEGORY
Networking irc 0.5 picoirc(3tcl)
All times are GMT -4. The time now is 05:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy