05-09-2010
The problem is I cant understand the scenario and how to develop it.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am going to purchase Unix Network Programming by Stevens. The only question I have is which edition to buy. The older (early 90's) edition, or the newer (late 90's) edition. I know conventional thinking would point to the latest ( and greatest?), but I wanted to get some feedback from the forum.... (3 Replies)
Discussion started by: dangral
3 Replies
2. Programming
Good day everyone,
Please help if you are interested in.
I need to do a chat client-server program.
Does anyone know where I can get references or sample programs?
Thank you very much for your time
Eric (2 Replies)
Discussion started by: powermind
2 Replies
3. UNIX for Dummies Questions & Answers
Greetings everyone,
I've been using OpenWRT for some time primarly for research in the University. I've also started with some basic network programming (sending UDP packets for instance). But since most of the available tutorials on unix network programming are more related to ethernet... (4 Replies)
Discussion started by: aztroboy
4 Replies
4. Programming
Hi!
I am working on fedora..
trying to execute BSD4.4 client-server program which includes "unp.h" header file...
While executing make command, I got error like,
" expected " , " , " ; ",or ")" in connect_nonb file...ERROR 1 "
I tried to change mode of makefile but I can't get... (4 Replies)
Discussion started by: nisha_vaghela
4 Replies
5. Programming
I have written a client-server program which does some data from a file in server to the client. In this I don't want the client to wait indefinitely if server is not running. For this I am using SELECT system call, in this system call we can specify timings as an argument, which tells the client... (2 Replies)
Discussion started by: naresh046
2 Replies
6. UNIX for Dummies Questions & Answers
How does unix system administration, unix programming, unix network programming differ?
Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies
7. IP Networking
Hi,
I have to start doing network programming in C/Unix but I have windows installed.
Could someone please guide me how to set up the environment best suited for the networking programming?
Regards
Vinayak (1 Reply)
Discussion started by: vinayakj20
1 Replies
8. Programming
I have started reading the book Unix Network Programming, Volume 1: The Sockets Networking API. I downloaded all the source code and the readme says I must make the files.
zuro@zuro:~/book/unpv12e$ cd lib
zuro@zuro:~/book/unpv12e/lib$ make
gcc -g -O2 -D_REENTRANT -Wall -c -o... (5 Replies)
Discussion started by: xuro
5 Replies
9. Programming
I have started reading the book Unix Network Programming, Volume 1: The Sockets Networking API. I downloaded all the source code and performed all the steps present in README file.Now when i compile my first program it give the following error.
sainandan@nandan:~/unpv13e/intro$ ./daytimetcpcli... (1 Reply)
Discussion started by: bsainandan
1 Replies
10. UNIX for Advanced & Expert Users
Is it possible to study second volume of Unix Network Programming - Interprocess communication (by Stevense) with Advanced Programming in Unix Environment by the same author?
I've got the idea that the topics/subjects in second volume has more to do with non network programming hence it seems... (0 Replies)
Discussion started by: vectrum
0 Replies
LEARN ABOUT OSX
chatwidget
chatwidget(n) Composite widget for chat applications chatwidget(n)
__________________________________________________________________________________________________________________________________________________
NAME
chatwidget - Provides a multi-paned view suitable for display of chat room or irc channel information
SYNOPSIS
package require Tk 8.5
package require chatwidget ?1.0.0?
::chatwidget::chatwidget path ?options?
$widget topic command args
$widget name nick args
$widget message text args
$widget hook command args
$widget names args
$widget entry args
$widget chat args
_________________________________________________________________
DESCRIPTION
This is a composite widget designed to simplify the construction of chat applications. The widget contains display areas for chat messages,
user names and topic and an entry area. It automatically handles colourization of messages per nick and manages nick completion. A system
of hooks permit the application author to adjust display features. The main chat display area may be split for use displaying history or
for searching.
The widget is made up of a number of text widget and panedwindow widgets so that the size of each part of the display may be adjusted by
the user. All the text widgets may be accessed via widget passthrough commands if fine adjustment is required. The topic and names sections
can also be hidden if desired.
COMMANDS
::chatwidget::chatwidget path ?options?
Create a new chatwidget using the Tk window id path. Any options provided are currently passed directly to the main chat text wid-
get.
WIDGET COMMANDS
$widget topic command args
The chat widget can display a topic string, for instance the topic or name given to a multi-user chatroom or irc channel.
show Enable display of the topic.
hide Disable display of the topic
set topic
Set the topic text to topic.
$widget name nick args
Control the names and tags associated with names.
list ?-full?
Returns a list of all the user names from the names view. If ?-full? is given then the list returned is a list of lists where
each sublist is made up of the nick followed by any options that have been set on this nick entry. This may be used to exam-
ine any application specific options that may be applied to a nick when using the add command.
add nick ?options?
delete nick
$widget message text args
Add messages to the display. options are -nick, -time, -type, -mark -tags
$widget hook command args
Manage hooks. add (message, post names_group, names_nick, chatstate), remove, run
$widget names args
Passthrough to the name display text widget. See the text widget manual for all available commands. The chatwidget provides two
additional commands show and hide which are used to control the display of this element in the widget.
$widget entry args
Passthrough to the entry text widget. See the text widget manual for all available commands.
$widget chat args
Passthrough to the chat text widget. See the text widget manual for all available commands.
EXAMPLE
chatwidget::chatwidget .chat
proc speak {w msg} {$w message $msg -nick user}
pack .chat -side top -fill both -expand 1
A more extensive example is available by examining the code for the picoirc program in the tclapps repository which ties the tcllib picoirc
package to this chatwidget package to create a simple irc client.
SEE ALSO
text(n)
KEYWORDS
chat, chatwidget, composite widget, irc, mega-widget, widget
chatwidget 1.0.0 chatwidget(n)