incubator-bluesky-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dane0...@apache.org
Subject svn commit: r774247 [13/24] - in /incubator/bluesky: tags/Bluesky_version1.0/ trunk/ trunk/sourcecode/ trunk/sourcecode/dtu_src_v1.0/ trunk/sourcecode/student_src_v1.0/ trunk/sourcecode/student_src_v1.0/pic/ trunk/sourcecode/teacher_src_1.0/ trunk/sour...
Date Wed, 13 May 2009 07:44:32 GMT
Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/.deps/tcppollthread.Po
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/.deps/tcppollthread.Po?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/.deps/tcppollthread.Po (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/.deps/tcppollthread.Po Wed May 13 07:44:26 2009
@@ -0,0 +1,62 @@
+tcppollthread.o tcppollthread.o: tcppollthread.cpp tcppollthread.h \
+  /usr/include/jthread/jthread.h /usr/include/jthread/jmutex.h \
+  /usr/include/pthread.h /usr/include/features.h /usr/include/sys/cdefs.h \
+  /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
+  /usr/include/gnu/stubs-32.h /usr/include/endian.h \
+  /usr/include/bits/endian.h /usr/include/sched.h \
+  /usr/include/bits/types.h /usr/include/bits/typesizes.h \
+  /usr/lib/gcc/i486-linux-gnu/4.2.4/include/stddef.h /usr/include/time.h \
+  /usr/include/bits/sched.h /usr/include/bits/time.h \
+  /usr/include/xlocale.h /usr/include/signal.h /usr/include/bits/sigset.h \
+  /usr/include/bits/pthreadtypes.h /usr/include/bits/setjmp.h \
+  /usr/include/jthread/jmutex.h tcpcomm.h
+
+tcppollthread.h:
+
+/usr/include/jthread/jthread.h:
+
+/usr/include/jthread/jmutex.h:
+
+/usr/include/pthread.h:
+
+/usr/include/features.h:
+
+/usr/include/sys/cdefs.h:
+
+/usr/include/bits/wordsize.h:
+
+/usr/include/gnu/stubs.h:
+
+/usr/include/gnu/stubs-32.h:
+
+/usr/include/endian.h:
+
+/usr/include/bits/endian.h:
+
+/usr/include/sched.h:
+
+/usr/include/bits/types.h:
+
+/usr/include/bits/typesizes.h:
+
+/usr/lib/gcc/i486-linux-gnu/4.2.4/include/stddef.h:
+
+/usr/include/time.h:
+
+/usr/include/bits/sched.h:
+
+/usr/include/bits/time.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/signal.h:
+
+/usr/include/bits/sigset.h:
+
+/usr/include/bits/pthreadtypes.h:
+
+/usr/include/bits/setjmp.h:
+
+/usr/include/jthread/jmutex.h:
+
+tcpcomm.h:

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/BugFix.txt
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/BugFix.txt?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/BugFix.txt (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/BugFix.txt Wed May 13 07:44:26 2009
@@ -0,0 +1,7 @@
+1. ¸ü¸ÄÁ˹ØÓÚ½»»¥Ä£Ê½ ==> ÊÚ¿Îģʽ µÄCloseXImage²¿·ÖµÄbugÎÊÌ⣬½â¾öÁËÇл»Ê±µÄ¡°segment¡±
+
+
+2. stop threadµÄʱºòµÄ¸Ä½ø£¬¼õÉÙstop threadµÄµÈ´ýʱ¼ä
+
+¸úÕÅ·«ËµËµÃ÷µÄ´úÂë
+

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile Wed May 13 07:44:26 2009
@@ -0,0 +1,520 @@
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# src/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+
+pkgdatadir = $(datadir)/nc_teacher
+pkglibdir = $(libdir)/nc_teacher
+pkgincludedir = $(includedir)/nc_teacher
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+bin_PROGRAMS = ncteacher$(EXEEXT)
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+	$(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(bindir)"
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(bin_PROGRAMS)
+am_ncteacher_OBJECTS = ncteacher.$(OBJEXT) asyncsocketex.$(OBJEXT) \
+	callbacks.$(OBJEXT) client_communicate.$(OBJEXT) \
+	clientsocket.$(OBJEXT) fecrtpsession.$(OBJEXT) \
+	interface.$(OBJEXT) singlecomm.$(OBJEXT) support.$(OBJEXT) \
+	tcpcomm.$(OBJEXT) tcppollthread.$(OBJEXT) \
+	en_de_sendthread.$(OBJEXT) languagechoose.$(OBJEXT)
+ncteacher_OBJECTS = $(am_ncteacher_OBJECTS)
+am__DEPENDENCIES_1 =
+ncteacher_DEPENDENCIES = $(am__DEPENDENCIES_1)
+ncteacher_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+	$(ncteacher_LDFLAGS) $(LDFLAGS) -o $@
+DEFAULT_INCLUDES = -I. -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+	-o $@
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(ncteacher_SOURCES)
+DIST_SOURCES = $(ncteacher_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = aclocal-1.10
+AMTAR = tar
+AUTOCONF = autoconf
+AUTOHEADER = autoheader
+AUTOMAKE = automake-1.10
+AWK = mawk
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+GREP = /bin/grep
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LDFLAGS = 
+LIBOBJS = 
+LIBS = -lrom1394 -lraw1394 -ljthread -ljrtp -ldv -lavformat -lavcodec -lavc1394 -lartsc 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = makeinfo
+MKDIR_P = /bin/mkdir -p
+NO_PREFIX_PACKAGE_DATA_DIR = share
+NO_PREFIX_PACKAGE_DOC_DIR = doc/nc_teacher
+NO_PREFIX_PACKAGE_HELP_DIR = share/help
+NO_PREFIX_PACKAGE_MENU_DIR = share
+NO_PREFIX_PACKAGE_PIXMAPS_DIR = share/pixmaps
+OBJEXT = o
+PACKAGE = nc_teacher
+PACKAGE_BUGREPORT = caojin85cn@gmail.com
+PACKAGE_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1  
+PACKAGE_DATA_DIR = /usr/local/share
+PACKAGE_DOC_DIR = /usr/local/doc/nc_teacher
+PACKAGE_HELP_DIR = /usr/local/share/help
+PACKAGE_LIBS = -lgtk-x11-2.0 -latk-1.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
+PACKAGE_MENU_DIR = /usr/local/share
+PACKAGE_NAME = nc_teacher
+PACKAGE_PIXMAPS_DIR = /usr/local/share/pixmaps
+PACKAGE_STRING = nc_teacher 1.0
+PACKAGE_TARNAME = nc_teacher
+PACKAGE_VERSION = 1.0
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+RANLIB = ranlib
+SET_MAKE = 
+SHELL = /bin/bash
+STRIP = 
+VERSION = 1.0
+abs_builddir = /root/Desktop/teacher/src
+abs_srcdir = /root/Desktop/teacher/src
+abs_top_builddir = /root/Desktop/teacher
+abs_top_srcdir = /root/Desktop/teacher
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = ${AMTAR} chof - "$$tardir"
+am__untar = ${AMTAR} xf -
+bindir = ${exec_prefix}/bin
+build_alias = 
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host_alias = 
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = $(SHELL) /root/Desktop/teacher/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = /bin/mkdir -p
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_builddir = ..
+top_srcdir = ..
+INCLUDES = \
+	$(PACKAGE_CFLAGS)\
+	-I/usr/include/jrtplib3\
+	-I/usr/include/jthread\
+	-I/usr/include/gtk-2.0\
+	-I/usr/lib/gtk-2.0/include\
+	-I/usr/include/atk-1.0\
+	-I/usr/include/cairo\
+	-I/usr/include/pango-1.0\
+	-I/usr/include/glib-2.0\
+	-I/usr/lib/glib-2.0/include\
+	-I/usr/include/freetype2\
+	-I/usr/include/libpng12
+
+AM_CFLAGS = \
+	 -Wall\
+	 -g
+
+AM_CXXFLAGS = \
+	 -Wall\
+	 -g
+
+ncteacher_SOURCES = \
+	ncteacher.cc\
+	asyncsocketex.cpp\
+	asyncsocketex.h\
+	callbacks.cc\
+	callbacks.hh\
+	client_communicate.cc\
+	client_communicate.h\
+	clientsocket.cpp\
+	clientsocket.h\
+	fecrtpsession.cpp\
+	fecrtpsession.h\
+	interface.cc\
+	interface.hh\
+	singlecomm.cpp\
+	singlecomm.h\
+	stdafx.h\
+	support.cc\
+	support.hh\
+	tcpcomm.cpp\
+	tcpcomm.h\
+	tcppollthread.cpp\
+	tcppollthread.h\
+	trcclient.hh\
+	errorinfo.h\
+	en_de_sendthread.cpp\
+	en_de_sendthread.h\
+	languagechoose.cpp\
+	languagechoose.h
+
+ncteacher_LDFLAGS = 
+ncteacher_LDADD = \
+	$(PACKAGE_LIBS) -L/usr/lib/ao/plugins-2 -ldv -lartsc -ljrtp -ljthread -lraw1394 -lrom1394 -lavc1394
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .cc .cpp .o .obj
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-binPROGRAMS: $(bin_PROGRAMS)
+	@$(NORMAL_INSTALL)
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+	@list='$(bin_PROGRAMS)'; for p in $$list; do \
+	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+	  if test -f $$p \
+	  ; then \
+	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+	   echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
+	   $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
+	  else :; fi; \
+	done
+
+uninstall-binPROGRAMS:
+	@$(NORMAL_UNINSTALL)
+	@list='$(bin_PROGRAMS)'; for p in $$list; do \
+	  f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+	  echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(bindir)/$$f"; \
+	done
+
+clean-binPROGRAMS:
+	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
+ncteacher$(EXEEXT): $(ncteacher_OBJECTS) $(ncteacher_DEPENDENCIES) 
+	@rm -f ncteacher$(EXEEXT)
+	$(ncteacher_LINK) $(ncteacher_OBJECTS) $(ncteacher_LDADD) $(LIBS)
+
+mostlyclean-compile:
+	-rm -f *.$(OBJEXT)
+
+distclean-compile:
+	-rm -f *.tab.c
+
+include ./$(DEPDIR)/asyncsocketex.Po
+include ./$(DEPDIR)/callbacks.Po
+include ./$(DEPDIR)/client_communicate.Po
+include ./$(DEPDIR)/clientsocket.Po
+include ./$(DEPDIR)/en_de_sendthread.Po
+include ./$(DEPDIR)/fecrtpsession.Po
+include ./$(DEPDIR)/interface.Po
+include ./$(DEPDIR)/languagechoose.Po
+include ./$(DEPDIR)/ncteacher.Po
+include ./$(DEPDIR)/singlecomm.Po
+include ./$(DEPDIR)/support.Po
+include ./$(DEPDIR)/tcpcomm.Po
+include ./$(DEPDIR)/tcppollthread.Po
+
+.cc.o:
+	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+#	source='$<' object='$@' libtool=no \
+#	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
+#	$(CXXCOMPILE) -c -o $@ $<
+
+.cc.obj:
+	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+#	source='$<' object='$@' libtool=no \
+#	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
+#	$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.cpp.o:
+	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+#	source='$<' object='$@' libtool=no \
+#	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
+#	$(CXXCOMPILE) -c -o $@ $<
+
+.cpp.obj:
+	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+#	source='$<' object='$@' libtool=no \
+#	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
+#	$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	mkid -fID $$unique
+tags: TAGS
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+	  test -n "$$unique" || unique=$$empty_fix; \
+	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	    $$tags $$unique; \
+	fi
+ctags: CTAGS
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+	     $$tags $$unique
+
+GTAGS:
+	here=`$(am__cd) $(top_builddir) && pwd` \
+	  && cd $(top_srcdir) \
+	  && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+installdirs:
+	for dir in "$(DESTDIR)$(bindir)"; do \
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+	done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
+
+distclean: distclean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+	distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-binPROGRAMS
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
+	clean-generic ctags distclean distclean-compile \
+	distclean-generic distclean-tags distdir dvi dvi-am html \
+	html-am info info-am install install-am install-binPROGRAMS \
+	install-data install-data-am install-dvi install-dvi-am \
+	install-exec install-exec-am install-html install-html-am \
+	install-info install-info-am install-man install-pdf \
+	install-pdf-am install-ps install-ps-am install-strip \
+	installcheck installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
+	mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
+	uninstall-am uninstall-binPROGRAMS
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile.am?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile.am (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile.am Wed May 13 07:44:26 2009
@@ -0,0 +1,59 @@
+INCLUDES = \
+	$(PACKAGE_CFLAGS)\
+	-I/usr/include/jrtplib3\
+	-I/usr/include/jthread\
+	-I/usr/include/gtk-2.0\
+	-I/usr/lib/gtk-2.0/include\
+	-I/usr/include/atk-1.0\
+	-I/usr/include/cairo\
+	-I/usr/include/pango-1.0\
+	-I/usr/include/glib-2.0\
+	-I/usr/lib/glib-2.0/include\
+	-I/usr/include/freetype2\
+	-I/usr/include/libpng12
+
+AM_CFLAGS =\
+	 -Wall\
+	 -g
+
+AM_CXXFLAGS =\
+	 -Wall\
+	 -g
+
+bin_PROGRAMS = ncteacher
+
+ncteacher_SOURCES = \
+	ncteacher.cc\
+	asyncsocketex.cpp\
+	asyncsocketex.h\
+	callbacks.cc\
+	callbacks.hh\
+	client_communicate.cc\
+	client_communicate.h\
+	clientsocket.cpp\
+	clientsocket.h\
+	fecrtpsession.cpp\
+	fecrtpsession.h\
+	interface.cc\
+	interface.hh\
+	singlecomm.cpp\
+	singlecomm.h\
+	stdafx.h\
+	support.cc\
+	support.hh\
+	tcpcomm.cpp\
+	tcpcomm.h\
+	tcppollthread.cpp\
+	tcppollthread.h\
+	trcclient.hh\
+	errorinfo.h\
+	en_de_sendthread.cpp\
+	en_de_sendthread.h\
+	languagechoose.cpp\
+	languagechoose.h
+
+ncteacher_LDFLAGS = 
+
+ncteacher_LDADD =  \
+	$(PACKAGE_LIBS) -L/usr/lib/ao/plugins-2 -ldv -lartsc -ljrtp -ljthread -lraw1394 -lrom1394 -lavc1394
+

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile.in
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile.in?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile.in (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/Makefile.in Wed May 13 07:44:26 2009
@@ -0,0 +1,520 @@
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+bin_PROGRAMS = ncteacher$(EXEEXT)
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+	$(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(bindir)"
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(bin_PROGRAMS)
+am_ncteacher_OBJECTS = ncteacher.$(OBJEXT) asyncsocketex.$(OBJEXT) \
+	callbacks.$(OBJEXT) client_communicate.$(OBJEXT) \
+	clientsocket.$(OBJEXT) fecrtpsession.$(OBJEXT) \
+	interface.$(OBJEXT) singlecomm.$(OBJEXT) support.$(OBJEXT) \
+	tcpcomm.$(OBJEXT) tcppollthread.$(OBJEXT) \
+	en_de_sendthread.$(OBJEXT) languagechoose.$(OBJEXT)
+ncteacher_OBJECTS = $(am_ncteacher_OBJECTS)
+am__DEPENDENCIES_1 =
+ncteacher_DEPENDENCIES = $(am__DEPENDENCIES_1)
+ncteacher_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+	$(ncteacher_LDFLAGS) $(LDFLAGS) -o $@
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+	-o $@
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(ncteacher_SOURCES)
+DIST_SOURCES = $(ncteacher_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+NO_PREFIX_PACKAGE_DATA_DIR = @NO_PREFIX_PACKAGE_DATA_DIR@
+NO_PREFIX_PACKAGE_DOC_DIR = @NO_PREFIX_PACKAGE_DOC_DIR@
+NO_PREFIX_PACKAGE_HELP_DIR = @NO_PREFIX_PACKAGE_HELP_DIR@
+NO_PREFIX_PACKAGE_MENU_DIR = @NO_PREFIX_PACKAGE_MENU_DIR@
+NO_PREFIX_PACKAGE_PIXMAPS_DIR = @NO_PREFIX_PACKAGE_PIXMAPS_DIR@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_CFLAGS = @PACKAGE_CFLAGS@
+PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@
+PACKAGE_DOC_DIR = @PACKAGE_DOC_DIR@
+PACKAGE_HELP_DIR = @PACKAGE_HELP_DIR@
+PACKAGE_LIBS = @PACKAGE_LIBS@
+PACKAGE_MENU_DIR = @PACKAGE_MENU_DIR@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_PIXMAPS_DIR = @PACKAGE_PIXMAPS_DIR@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+INCLUDES = \
+	$(PACKAGE_CFLAGS)\
+	-I/usr/include/jrtplib3\
+	-I/usr/include/jthread\
+	-I/usr/include/gtk-2.0\
+	-I/usr/lib/gtk-2.0/include\
+	-I/usr/include/atk-1.0\
+	-I/usr/include/cairo\
+	-I/usr/include/pango-1.0\
+	-I/usr/include/glib-2.0\
+	-I/usr/lib/glib-2.0/include\
+	-I/usr/include/freetype2\
+	-I/usr/include/libpng12
+
+AM_CFLAGS = \
+	 -Wall\
+	 -g
+
+AM_CXXFLAGS = \
+	 -Wall\
+	 -g
+
+ncteacher_SOURCES = \
+	ncteacher.cc\
+	asyncsocketex.cpp\
+	asyncsocketex.h\
+	callbacks.cc\
+	callbacks.hh\
+	client_communicate.cc\
+	client_communicate.h\
+	clientsocket.cpp\
+	clientsocket.h\
+	fecrtpsession.cpp\
+	fecrtpsession.h\
+	interface.cc\
+	interface.hh\
+	singlecomm.cpp\
+	singlecomm.h\
+	stdafx.h\
+	support.cc\
+	support.hh\
+	tcpcomm.cpp\
+	tcpcomm.h\
+	tcppollthread.cpp\
+	tcppollthread.h\
+	trcclient.hh\
+	errorinfo.h\
+	en_de_sendthread.cpp\
+	en_de_sendthread.h\
+	languagechoose.cpp\
+	languagechoose.h
+
+ncteacher_LDFLAGS = 
+ncteacher_LDADD = \
+	$(PACKAGE_LIBS) -L/usr/lib/ao/plugins-2 -ldv -lartsc -ljrtp -ljthread -lraw1394 -lrom1394 -lavc1394
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .cc .cpp .o .obj
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-binPROGRAMS: $(bin_PROGRAMS)
+	@$(NORMAL_INSTALL)
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+	@list='$(bin_PROGRAMS)'; for p in $$list; do \
+	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+	  if test -f $$p \
+	  ; then \
+	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+	   echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
+	   $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
+	  else :; fi; \
+	done
+
+uninstall-binPROGRAMS:
+	@$(NORMAL_UNINSTALL)
+	@list='$(bin_PROGRAMS)'; for p in $$list; do \
+	  f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+	  echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(bindir)/$$f"; \
+	done
+
+clean-binPROGRAMS:
+	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
+ncteacher$(EXEEXT): $(ncteacher_OBJECTS) $(ncteacher_DEPENDENCIES) 
+	@rm -f ncteacher$(EXEEXT)
+	$(ncteacher_LINK) $(ncteacher_OBJECTS) $(ncteacher_LDADD) $(LIBS)
+
+mostlyclean-compile:
+	-rm -f *.$(OBJEXT)
+
+distclean-compile:
+	-rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asyncsocketex.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callbacks.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client_communicate.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clientsocket.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/en_de_sendthread.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fecrtpsession.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/languagechoose.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ncteacher.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/singlecomm.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/support.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tcpcomm.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tcppollthread.Po@am__quote@
+
+.cc.o:
+@am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ $<
+
+.cc.obj:
+@am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.cpp.o:
+@am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ $<
+
+.cpp.obj:
+@am__fastdepCXX_TRUE@	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	mkid -fID $$unique
+tags: TAGS
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+	  test -n "$$unique" || unique=$$empty_fix; \
+	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	    $$tags $$unique; \
+	fi
+ctags: CTAGS
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+	     $$tags $$unique
+
+GTAGS:
+	here=`$(am__cd) $(top_builddir) && pwd` \
+	  && cd $(top_srcdir) \
+	  && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+installdirs:
+	for dir in "$(DESTDIR)$(bindir)"; do \
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+	done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
+
+distclean: distclean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+	distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-binPROGRAMS
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
+	clean-generic ctags distclean distclean-compile \
+	distclean-generic distclean-tags distdir dvi dvi-am html \
+	html-am info info-am install install-am install-binPROGRAMS \
+	install-data install-data-am install-dvi install-dvi-am \
+	install-exec install-exec-am install-html install-html-am \
+	install-info install-info-am install-man install-pdf \
+	install-pdf-am install-ps install-ps-am install-strip \
+	installcheck installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
+	mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
+	uninstall-am uninstall-binPROGRAMS
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/asyncsocketex.cpp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/asyncsocketex.cpp?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/asyncsocketex.cpp (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/asyncsocketex.cpp Wed May 13 07:44:26 2009
@@ -0,0 +1,543 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+// AsyncSocketEx.cpp: 
+
+//////////////////////////////////////////////////////////////////////
+
+
+
+#include "stdafx.h"
+
+#include "asyncsocketex.h"
+
+
+
+
+
+//////////////////////////////////////////////////////////////////////
+
+// construction/Destruction
+
+//////////////////////////////////////////////////////////////////////
+
+
+
+CAsyncSocketEx::CAsyncSocketEx()
+
+{
+
+	m_SocketData.hSocket=INVALID_SOCKET;
+
+	m_SocketData.nSocketIndex=-1;
+
+	m_lEvent = 0;
+
+}
+
+
+
+CAsyncSocketEx::~CAsyncSocketEx()
+
+{
+
+	Close();
+
+}
+
+
+
+bool CAsyncSocketEx::Create( UINT nSocketPort , int nSocketType , LPCTSTR lpszSocketAddress )
+
+{
+
+
+
+	SOCKET hSocket=socket(AF_INET, nSocketType, 0);
+
+	if (hSocket==INVALID_SOCKET)
+
+		return false;
+
+	m_SocketData.hSocket=hSocket;
+
+	
+
+	if (!Bind(nSocketPort, lpszSocketAddress))
+
+	{
+
+		Close();
+
+		return false;
+
+	}
+
+	return true;
+
+}
+
+
+
+
+bool CAsyncSocketEx::Bind(UINT nSocketPort, LPCTSTR lpszSocketAddress)
+
+{
+
+	SOCKADDR_IN sockAddr;
+
+	memset(&sockAddr,0,sizeof(sockAddr));
+
+
+
+	LPSTR lpszAscii = (LPSTR)lpszSocketAddress;
+
+	sockAddr.sin_family = AF_INET;
+
+
+
+	if (lpszAscii == NULL)
+
+		sockAddr.sin_addr.s_addr = htonl(INADDR_ANY);
+
+	else
+
+	{
+
+		DWORD lResult = inet_addr(lpszAscii);
+
+		if (lResult == INADDR_NONE)
+
+		{
+
+			return false;
+
+		}
+
+		sockAddr.sin_addr.s_addr = lResult;
+
+	}
+
+
+
+	sockAddr.sin_port = htons((u_short)nSocketPort);
+
+
+
+	return Bind((SOCKADDR*)&sockAddr, sizeof(sockAddr));
+
+}
+
+
+
+bool CAsyncSocketEx::Bind(const SOCKADDR* lpSockAddr, int nSockAddrLen)
+
+{
+
+	if (!bind(m_SocketData.hSocket, lpSockAddr, nSockAddrLen))
+
+		return true;
+
+	else
+
+		return false;
+
+}
+
+
+
+void CAsyncSocketEx::Close()
+
+{
+
+	if (m_SocketData.hSocket != INVALID_SOCKET)
+
+	{
+
+		if( close(m_SocketData.hSocket) == SOCKET_ERROR){
+
+			printf("\nclose socket error.");
+
+			return;
+
+		}
+
+		m_SocketData.hSocket=INVALID_SOCKET;
+
+		m_lEvent = 0;
+
+	}
+
+}
+
+
+
+bool CAsyncSocketEx::GetSockOpt(int nOptionName, void* lpOptionValue, int* lpOptionLen, int nLevel)
+
+{
+
+	int status;
+
+	if(m_SocketData.hSocket == 0)
+
+		return false;
+
+	
+
+	status = getsockopt(m_SocketData.hSocket, nLevel, nOptionName, lpOptionValue, (socklen_t*)lpOptionLen );
+
+	if (status != 0)
+
+		return false;
+
+	
+
+	return true;
+
+}
+
+
+
+bool CAsyncSocketEx::SetSockOpt(int nOptionName, const void* lpOptionValue, int nOptionLen, int nLevel )
+
+{
+
+	int status;
+
+	if(m_SocketData.hSocket == 0)
+
+		return false;
+
+	
+
+	status = setsockopt(m_SocketData.hSocket, nLevel, nOptionName, lpOptionValue, nOptionLen );
+
+	if (status != 0)
+
+		return false;
+
+	
+
+	return true;
+
+}
+
+	
+
+
+
+int CAsyncSocketEx::Receive(void* lpBuf, int nBufLen, int nFlags )
+
+{
+
+	return recv(m_SocketData.hSocket, (LPSTR)lpBuf, nBufLen, nFlags);
+
+}
+
+	
+
+
+
+int CAsyncSocketEx::Send(const void* lpBuf, int nBufLen, int nFlags )
+
+{
+
+	return send(m_SocketData.hSocket, (LPSTR)lpBuf, nBufLen, nFlags);
+
+}
+
+
+
+bool CAsyncSocketEx::Connect(LPCTSTR lpszHostAddress, UINT nHostPort)
+
+{
+
+
+
+	SOCKADDR_IN sockAddr;
+
+	memset(&sockAddr,0,sizeof(sockAddr));
+
+	
+
+	LPSTR lpszAscii = (LPSTR)lpszHostAddress;
+
+	sockAddr.sin_family = AF_INET;
+
+	sockAddr.sin_addr.s_addr = inet_addr(lpszAscii);
+
+	
+
+	if (sockAddr.sin_addr.s_addr == INADDR_NONE)
+
+	{
+
+	}
+
+	
+
+	sockAddr.sin_port = htons((u_short)nHostPort);
+
+	
+
+	return CAsyncSocketEx::Connect((SOCKADDR*)&sockAddr, sizeof(sockAddr));
+
+}
+
+
+
+bool CAsyncSocketEx::Connect( const SOCKADDR* lpSockAddr, int nSockAddrLen )
+
+{
+
+	if(m_SocketData.hSocket == INVALID_SOCKET)
+
+		return false;
+
+	return SOCKET_ERROR!=connect(m_SocketData.hSocket, lpSockAddr, nSockAddrLen);
+
+}
+
+	
+
+
+
+bool CAsyncSocketEx::GetPeerName( SOCKADDR* lpSockAddr, int* lpSockAddrLen )
+
+{
+
+	if ( !getpeername(m_SocketData.hSocket, lpSockAddr, (socklen_t*)lpSockAddrLen) )
+
+		return true;
+
+	else
+
+		return false;
+
+}
+
+
+
+bool CAsyncSocketEx::GetSockName( SOCKADDR* lpSockAddr, int* lpSockAddrLen )
+
+{
+
+	if ( !getsockname(m_SocketData.hSocket, lpSockAddr, (socklen_t*)lpSockAddrLen) )
+
+		return true;
+
+	else
+
+		return false;
+
+}
+
+
+
+bool CAsyncSocketEx::ShutDown( int nHow )
+
+{
+
+	if ( !shutdown(m_SocketData.hSocket, nHow) )
+
+		return true;
+
+	else
+
+		return false;
+
+}
+
+
+
+SOCKET CAsyncSocketEx::Detach( )
+
+{
+
+	SOCKET socket=m_SocketData.hSocket;
+
+	m_SocketData.hSocket=INVALID_SOCKET;
+
+	m_lEvent = 0;
+
+	return socket;
+
+}
+
+
+
+bool CAsyncSocketEx::Attach( SOCKET hSocket, long lEvent)
+
+{
+
+	if (hSocket==INVALID_SOCKET || !hSocket)
+
+		return false;
+
+
+
+	m_SocketData.hSocket=hSocket;
+
+	m_lEvent = lEvent;
+
+
+	return true;
+
+}
+
+
+
+bool CAsyncSocketEx::Listen( int nConnectionBacklog )
+
+{
+
+	if (!listen(m_SocketData.hSocket, nConnectionBacklog))
+
+		return true;
+
+	else
+
+		return false;
+
+}
+
+
+
+bool CAsyncSocketEx::Accept( CAsyncSocketEx& rConnectedSocket, SOCKADDR* lpSockAddr , int* lpSockAddrLen  )
+
+{
+
+	
+
+	SOCKET hTemp = accept(m_SocketData.hSocket, lpSockAddr, (socklen_t*)lpSockAddrLen);
+
+
+
+	if (hTemp == INVALID_SOCKET)
+
+		return false;
+
+	rConnectedSocket.m_SocketData.hSocket=hTemp;
+
+	return true;
+
+}
+
+
+
+bool CAsyncSocketEx::IOCtl( long lCommand, DWORD* lpArgument )
+
+{
+
+	if ( !ioctl(m_SocketData.hSocket, lCommand, lpArgument) )
+
+		return false;
+
+	else
+
+		return true;
+
+}
+
+
+
+int CAsyncSocketEx::GetLastError()
+
+{
+
+	return -1;
+
+}
+
+
+
+
+
+SOCKET CAsyncSocketEx::GetSocketHandle()
+
+{
+
+	return m_SocketData.hSocket;
+
+}
+
+
+
+
+
+
+
+int CAsyncSocketEx::Poll()
+
+{
+
+	fd_set fdsetread;
+
+	struct timeval tv;
+
+
+
+	FD_ZERO(&fdsetread);
+
+	FD_SET(m_SocketData.hSocket,&fdsetread);
+
+	tv.tv_sec = 0;
+
+	tv.tv_usec = 10000;
+
+
+
+	
+
+	if (select(FD_SETSIZE,&fdsetread,0,0,&tv) < 0){
+
+		m_lEvent = -1;
+
+		return m_lEvent;
+
+	}
+
+	m_lEvent = 0;
+
+
+
+
+
+	if(FD_ISSET(m_SocketData.hSocket,&fdsetread)){
+
+
+			m_lEvent = 1;
+
+	}
+
+	return m_lEvent;
+
+}
+
+
+
+void CAsyncSocketEx::OnEvent()
+
+{
+
+
+
+	return ;
+
+}

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/asyncsocketex.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/asyncsocketex.h?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/asyncsocketex.h (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/asyncsocketex.h Wed May 13 07:44:26 2009
@@ -0,0 +1,217 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+// AsyncSocketEx.h: 
+
+
+//////////////////////////////////////////////////////////////////////
+
+
+
+#include "stdafx.h"
+
+
+#if !defined(ASYNCSOCKETEX_H)
+
+#define ASYNCSOCKETEX_H
+
+
+
+
+
+
+
+class CAsyncSocketEx  
+
+{
+
+
+
+public:
+
+	virtual int Poll();
+
+	SOCKET GetSocketHandle();
+
+
+	//Functions that imitate CAsyncSocket
+
+
+
+	//Construction
+
+	CAsyncSocketEx(); //Constructs a CAsyncSocket object
+
+	virtual ~CAsyncSocketEx();
+
+
+
+	//Creates a socket
+
+	bool Create(UINT nSocketPort = 0, 
+
+				int nSocketType = SOCK_STREAM,
+
+				LPCTSTR lpszSocketAddress = NULL );
+
+
+
+
+	inline long GetStatus(){ return m_lEvent;};
+
+	inline void SetStatus(long lEvent){ m_lEvent = lEvent;};
+
+	//Attaches a socket handle to a CAsyncSocket object
+
+	bool Attach( SOCKET hSocket, long lEvent=0);
+
+	
+
+	//Detaches a socket handle from a CAsyncSocket object
+
+	SOCKET Detach( );
+
+
+
+	//Gets the error status for the last operation that failed.
+
+	static int GetLastError();
+
+
+
+	//Gets the address of the peer socket to which the socket is connected
+
+	bool GetPeerName( SOCKADDR* lpSockAddr, int* lpSockAddrLen );
+
+
+
+	//Gets the local name for a socket
+
+	bool GetSockName( SOCKADDR* lpSockAddr, int* lpSockAddrLen );
+
+
+
+	//Retrieves a socket option
+
+	bool GetSockOpt(int nOptionName, void* lpOptionValue, int* lpOptionLen, int nLevel = SOL_SOCKET);
+
+
+
+	//Sets a socket option
+
+	bool SetSockOpt(int nOptionName, const void* lpOptionValue, int nOptionLen, int nLevel = SOL_SOCKET);
+
+	
+
+
+
+	//Operations
+
+
+
+
+
+	virtual void Close();
+
+	
+
+	
+
+	bool Bind(UINT nSocketPort, LPCTSTR lpszSocketAddress);
+
+	bool Bind(const SOCKADDR* lpSockAddr, int nSockAddrLen);
+
+
+
+	virtual bool Connect(LPCTSTR lpszHostAddress, UINT nHostPort);
+
+	virtual bool Connect( const SOCKADDR* lpSockAddr, int nSockAddrLen );
+
+
+
+	bool Listen( int nConnectionBacklog = 5 );
+
+	virtual bool Accept( CAsyncSocketEx& rConnectedSocket, SOCKADDR* lpSockAddr = NULL, int* lpSockAddrLen = NULL );
+
+
+
+	
+
+	
+
+	bool IOCtl( long lCommand, DWORD* lpArgument );
+
+
+
+	
+
+	bool ShutDown( int nHow = sends );
+
+
+
+	
+
+	virtual int Receive(void* lpBuf, int nBufLen, int nFlags = 0);
+
+	virtual int Send(const void* lpBuf, int nBufLen, int nFlags = 0);
+
+
+
+	enum { receives = 0, sends = 1, both = 2 };
+
+
+
+
+
+protected:
+
+
+	
+
+public:
+
+	virtual void OnEvent();
+
+
+
+protected:	
+
+	struct t_AsyncSocketExData
+
+	{
+
+		SOCKET hSocket;
+
+		int nSocketIndex;
+
+	} m_SocketData;
+
+
+
+	long m_lEvent;
+
+
+
+};
+
+
+
+
+
+#endif // !defined(ASYNCSOCKETEX_H)

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/callbacks.cc
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/callbacks.cc?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/callbacks.cc (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/callbacks.cc Wed May 13 07:44:26 2009
@@ -0,0 +1,1199 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <gtk/gtk.h>
+#include  <sys/types.h>
+#include <sys/socket.h>
+#include <stdio.h>
+#include <sys/un.h>
+#include <unistd.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include "client_communicate.h"
+#include <iostream>
+#include "callbacks.hh"
+#include "interface.hh"
+#include "support.hh"
+#include "stdafx.h"
+#include "trcclient.hh"
+
+#include "languagechoose.h" 
+
+#include "errorinfo.h"
+
+#include <gdk/gdkx.h> 
+
+
+
+extern entry_setpara ncteacher_get_para;  
+extern entry_usepara ncteacher_get_user;   
+
+extern int g_work_mode;
+extern struct CRCLTeacherLogin teachlogin;
+extern client_ts_communicate client_comm;
+
+extern GtkWidget *creatclass;
+extern GtkWidget *stopclass;
+extern GtkWidget *set_item;
+extern GtkWidget *login;
+extern GtkWidget *exitsys;
+
+extern GtkWidget *file_entry; 
+extern GtkWidget *view_file_button;
+
+extern GtkWidget *modetech;
+extern GtkWidget *modecomu;
+extern GtkWidget *set_toolbutton;
+extern GtkWidget *join_toolbutton;
+extern GtkWidget *exit_toolbutton;
+extern GtkWidget *creat_toolbutton;
+extern GtkWidget *cancel_toolbutton;
+extern GtkWidget *tech_toolbutton;
+extern GtkWidget *commu_toolbutton;
+extern GtkWidget *allow_chat_toolbutton;
+extern GtkWidget *rec_toolbutton;
+extern GtkWidget *student_clist;
+extern GtkWidget *enserverport;
+extern GtkWidget *concentrate_add_button;
+extern GtkWidget *concentrate_concel_button;
+extern GtkWidget *student_list_label;
+extern GtkTextBuffer *commu_buffer;      
+extern GtkTextIter commu_end;           
+extern GtkTextIter commu_start;
+extern GtkWidget *studentimage;
+extern GtkWidget *teacherimage;
+extern GtkWidget *rec_delay_set_dialog;
+extern GtkWidget *chat_entry;
+extern GtkWidget *chat_button;
+extern GtkAdjustment *adj;
+extern  GtkWidget *commu_textview;
+
+extern GtkWidget *review_image;
+extern GtkWidget *combobox4;
+extern GtkWidget *combobox5;
+
+extern char g_DevName[10][32];
+extern int student_list_num;
+extern CRCLCreateGroup  CreateGroup;
+
+ gfloat upper1,page_size1,value,step;
+
+int allow_chat_set=0;//0: stop chat;1: allow chat
+
+int is_focus_set=0;  //0: haven't set concentrate 1:set already
+
+int record_courseware_set=0; // 0:record 1:stop record
+
+
+int clist_focusid;          
+int class_state;
+
+int g_temp_work_mode=0;    //0: teach 1:record
+int dev_num_temp=0;
+int check_viewbutton=0; 
+extern int delay_time;
+extern CRCLCreateGroup  CreateGroup; //define in interface.cc 
+
+
+int error_info_no=0;                 //use by ncteacher_timer_callback()
+gboolean ncteacher_timer_callback(void *para)  
+{  
+	
+	client_ts_communicate::studentlist_mutex.Lock();
+
+	char listpre[100];
+	char listnow[10];
+	memset(listpre,0,sizeof(listpre));
+	memset(listnow,0,sizeof(listnow));
+    
+
+    sprintf(listnow,"%d", GTK_CLIST(student_clist)->rows);
+
+
+	
+	strcpy(listpre,plistpre); 
+	strcat(listpre,"(");
+	strcat(listpre,listnow);
+	strcat(listpre,pnumb);  
+
+	gtk_label_set_text (GTK_LABEL(student_list_label),listpre);
+
+	client_ts_communicate::studentlist_mutex.Unlock();
+	
+	switch(error_info_no)
+	{
+		case 0:
+			return true;
+		
+		case 3:
+			Error_dia(ERROR003,ERROR_S003);
+			error_info_no=0;
+		break;
+		
+		case 5:
+			Error_dia(ERROR005,ERROR_S005);	
+			error_info_no=0;
+		break;
+		
+		case 10:
+			Error_dia(ERROR010,ERROR_S010);
+			error_info_no=0;
+		break;
+		
+		case 12:
+			Error_dia(ERROR012,ERROR_S012);
+			error_info_no=0;
+		break;
+		case 19:
+			Error_dia(ERROR019,ERROR_S019);
+		    error_info_no=0;
+		break;
+		case 20:
+			Error_dia(ERROR020,ERROR_S020);
+		    error_info_no=0;
+		break;
+		
+		case 40:
+			
+	        upper1=GTK_ADJUSTMENT(adj)->upper;
+	        page_size1=GTK_ADJUSTMENT(adj)->page_size;
+	      
+		    value=upper1-page_size1;
+			gtk_adjustment_set_value (GTK_ADJUSTMENT (adj), value);
+			error_info_no=0;
+		    
+		break;
+		
+		default:
+		
+			break;
+	}		
+	return true;
+}
+
+
+void save_setpara_to_file()
+{
+	FILE *fp;
+    entry_setpara *save_setpara;
+
+	if((fp=fopen("ncteacher_setpara.conf","wt+"))==NULL)
+	{
+		printf("Error:can't open  parameter file!\n");
+		return;
+	}
+	
+	save_setpara=&ncteacher_get_para;
+
+	fwrite(save_setpara,sizeof(struct entry_setpara),1,fp);
+
+	fclose(fp);
+}
+
+
+void save_userpara_to_file()
+{
+	FILE *fp;
+	
+	entry_usepara *save_usepara;
+	if((fp=fopen("ncteacher_userpara.conf","wt+"))==NULL)
+	{
+		printf("Error:can't open user parameter file!\n");
+		return;
+	}
+	
+	save_usepara=&ncteacher_get_user;
+
+	fwrite(save_usepara,sizeof(struct entry_usepara),1,fp);
+	fclose(fp);
+}
+
+int get_client_clist()      
+{
+	CRCLMSG send_mes;
+	CRCLTeacherGetClientList 	TeacherGetClientList;
+	
+	TeacherGetClientList.TeacherID=client_comm.TeacherID;
+	TeacherGetClientList.RoomID=client_comm.GroupID;
+	
+	send_mes.rclType=1070;
+	send_mes.msglen=sizeof(TeacherGetClientList);
+	memcpy(send_mes.msg,&TeacherGetClientList,sizeof(TeacherGetClientList));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR007,ERROR_S007);
+    	perror("send get client list failed!");
+		return -1;
+	}
+	return 0;
+}
+
+
+void
+on_login_activate                      (GtkMenuItem     *menuitem,
+                                        gpointer         user_data)
+{
+  	GtkWidget *dialog2;
+	dialog2=create_login_dialog ();
+	gtk_widget_show(dialog2);
+	
+}
+
+
+void
+on_exitsys_activate                       (GtkMenuItem     *menuitem,
+                                        gpointer         user_data)
+{
+	CRCLMSG send_mes;
+	CRCLTeacherLogout 	Teacher_logout;
+	
+	Teacher_logout.TeacherID=client_comm.TeacherID;
+	
+	send_mes.rclType=5030;
+	send_mes.msglen=sizeof(Teacher_logout);
+	memcpy(send_mes.msg,&Teacher_logout,sizeof(Teacher_logout));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+    	perror("send logout message failed!");
+	
+	}
+	
+	client_comm.close_socket(2);
+	
+	
+	
+
+	 gtk_main_quit();
+}
+
+void
+on_modecomu_activate                   (GtkMenuItem     *menuitem,
+                                             gpointer         user_data)
+{   
+	CRCLMSG send_mes;
+	
+	CRCLTeacherSwitchMode mode_change;
+	
+	mode_change.GroupID=client_comm.GroupID;
+	mode_change.ModeType=0;
+	class_state=0;
+	send_mes.rclType=1080;
+	send_mes.msglen=sizeof(mode_change);
+	memcpy(send_mes.msg,&mode_change,sizeof(mode_change));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR008,ERROR_S008);
+    	perror("send swith to communicate mode message failed!");
+		return;
+	}
+	
+	
+	gtk_widget_set_sensitive (modetech, TRUE);
+	gtk_widget_set_sensitive (tech_toolbutton,TRUE);
+	
+	gtk_widget_set_sensitive (modecomu, FALSE);
+	gtk_widget_set_sensitive (commu_toolbutton,FALSE);
+	if(allow_chat_set==1)		
+	  gtk_tool_button_set_label((GtkToolButton*)allow_chat_toolbutton,pmodeswich);
+	gtk_widget_set_sensitive (allow_chat_toolbutton, FALSE);
+	
+
+	
+	
+	
+
+
+}
+
+
+void
+on_creatclass_activate               (GtkMenuItem     *menuitem,
+                                            gpointer         user_data)
+{
+    GtkWidget *class_dialog1;
+	class_dialog1= creat_class_dialog();
+	gtk_widget_show(class_dialog1);
+
+}
+
+
+
+void
+on_stopclass_activate              (GtkMenuItem     *menuitem,
+                                            gpointer         user_data)
+{
+	CRCLMSG send_mes;
+
+	TRCDestoryGroup DestoryGroup;
+	send_mes.rclType=10010;
+	DestoryGroup.TeacherID=client_comm.TeacherID;
+	DestoryGroup.GroupID=client_comm.GroupID;
+	
+	send_mes.msglen=sizeof(DestoryGroup);
+	memcpy(send_mes.msg,&DestoryGroup,sizeof(DestoryGroup));
+
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR006,ERROR_S006);
+    	perror("send failed!");
+		return;
+	}
+	
+
+	       client_ts_communicate::studentlist_mutex.Lock();
+	        gtk_clist_freeze( GTK_CLIST(student_clist) );
+	        gtk_clist_clear(GTK_CLIST(student_clist));
+	        gtk_clist_thaw(GTK_CLIST(student_clist));
+	        client_ts_communicate::studentlist_mutex.Unlock();
+			
+	
+	        
+			
+			is_focus_set=0;
+			
+			gtk_widget_set_sensitive (creatclass,TRUE);
+			gtk_widget_set_sensitive (creat_toolbutton,TRUE);
+			
+			gtk_widget_set_sensitive (stopclass,FALSE);
+			gtk_widget_set_sensitive (cancel_toolbutton,FALSE);
+			
+			gtk_widget_set_sensitive (modetech, FALSE);
+			gtk_widget_set_sensitive (tech_toolbutton,FALSE);
+	
+	        gtk_widget_set_sensitive (modecomu, FALSE);
+			gtk_widget_set_sensitive (commu_toolbutton,FALSE);
+			
+			gtk_widget_set_sensitive (chat_button, FALSE);
+			if(allow_chat_set==1)		
+	        gtk_tool_button_set_label((GtkToolButton*)allow_chat_toolbutton,pmodeswich);   
+		    gtk_widget_set_sensitive (allow_chat_toolbutton, FALSE);
+}
+
+
+void
+on_modetech_activate                   (GtkMenuItem     *menuitem,
+                                        gpointer         user_data)
+{
+	CRCLMSG send_mes;
+	
+    CRCLTeacherSwitchMode mode_change;
+	
+	mode_change.GroupID=client_comm.GroupID;
+	mode_change.ModeType=1;
+	class_state=1;
+	send_mes.rclType=1080;
+	send_mes.msglen=sizeof(mode_change);
+	memcpy(send_mes.msg,&mode_change,sizeof(mode_change));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR008,ERROR_S008);
+    	perror("send swith to teach mode message failed!");
+		return;
+	}
+	
+	gtk_widget_set_sensitive (modetech, FALSE);
+	gtk_widget_set_sensitive (tech_toolbutton, FALSE);
+	
+	gtk_widget_set_sensitive (modecomu, TRUE);
+	gtk_widget_set_sensitive (commu_toolbutton, TRUE);
+	gtk_widget_set_sensitive (allow_chat_toolbutton, TRUE);
+	
+	
+	
+	
+}
+
+
+
+void
+on_set_activate                        (GtkMenuItem     *menuitem,
+                                        gpointer         user_data)
+{
+    GtkWidget *para_dialog;
+	para_dialog=create_para_dialog ();
+	gtk_widget_show(para_dialog);
+
+}
+
+
+void
+on_stuimg_activate                     (GtkMenuItem     *menuitem,
+                                        gpointer         user_data)
+{
+
+}
+
+
+void
+on_techimg_activate                    (GtkMenuItem     *menuitem,
+                                        gpointer         user_data)
+{
+
+}
+
+
+
+
+
+void
+on_networkokbutton_clicked   (GtkButton       *button, gpointer     netdialog   )
+{
+   
+
+	get_networkconfig(); 
+	if(get_classpara()<0)
+		return;
+	gtk_widget_set_sensitive (login, TRUE);
+	gtk_widget_set_sensitive (join_toolbutton,TRUE);
+
+	save_setpara_to_file();
+	gtk_widget_destroy(GTK_WIDGET(netdialog)); 
+}
+
+
+void
+on_networkcancelbutton_clicked  (GtkObject       *object, gpointer         user_data)
+{
+	gtk_widget_destroy(GTK_WIDGET(user_data)); 	
+}
+
+
+
+
+void
+on_loginokbutton_clicked                (GtkButton       *button,
+                                        gpointer         user_data)
+{
+	
+	DWORD Dcenterport;
+	Dcenterport=ncteacher_get_para.serverport;
+	if(get_loadsys()<0)
+		return ;
+	LPCTSTR ts_addr=ncteacher_get_para.serverip;
+	
+	UINT ts_port=Dcenterport;
+		
+	if(client_comm.establish_connect(ts_addr,ts_port)<0)
+	{
+		Error_dia(ERROR001,ERROR_S001);
+		return ;
+	}
+	CRCLMSG send_mes;
+	
+	send_mes.rclType=5000;
+	send_mes.msglen=sizeof(teachlogin);
+	memcpy(send_mes.msg,&teachlogin,sizeof(teachlogin));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		perror("send failed!");
+		Error_dia(ERROR002,ERROR_S002);
+		return;
+	}
+	
+	gtk_widget_set_sensitive (creatclass,TRUE);   
+	gtk_widget_set_sensitive(creat_toolbutton,TRUE);
+	
+	gtk_widget_set_sensitive (exitsys,TRUE);
+	gtk_widget_set_sensitive(exit_toolbutton,TRUE);
+	
+	gtk_widget_set_sensitive (login,FALSE);
+	gtk_widget_set_sensitive(join_toolbutton,FALSE);
+	save_userpara_to_file();
+    gtk_widget_destroy(GTK_WIDGET(user_data)); 
+	
+}
+
+
+void
+on_login_cancelbutton_destroy (GtkObject       *object, gpointer         user_data)
+{
+	 gtk_widget_destroy(GTK_WIDGET(user_data)); 
+}
+
+
+void
+on_creat_cancelbut_clicked             (GtkButton       *button,
+                                        gpointer         user_data)
+{
+	 gtk_widget_destroy(GTK_WIDGET(user_data)); 
+}
+
+
+void
+on_creat_okbutton_clicked             (GtkButton       *button,
+                                        gpointer         user_data)
+{
+
+	CRCLMSG send_mes;
+	if(get_classname()<0)
+		return;
+	
+    send_mes.rclType=10000;
+	CreateGroup.TeacherID=client_comm.TeacherID;
+	
+	
+	send_mes.msglen=sizeof(CreateGroup);
+	memcpy(send_mes.msg,&CreateGroup,sizeof(CreateGroup));
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR004,ERROR_S004);
+    	perror("send creat class message failed!");
+		return;	
+	}
+	class_state=1;
+	gtk_widget_destroy(GTK_WIDGET(user_data)); 
+	
+}
+
+void
+on_set_toolbutton_clicked              (GtkToolButton   *toolbutton,
+                                        gpointer         user_data)
+{
+	
+
+    GtkWidget *para_dialog;
+	para_dialog=create_para_dialog ();
+	gtk_widget_show(para_dialog);
+
+}
+
+
+void
+on_join_toolbutton_clicked             (GtkToolButton   *toolbutton,
+                                        gpointer         user_data)
+{
+	
+  	GtkWidget *dialog2;
+	dialog2=create_login_dialog ();
+	gtk_widget_show(dialog2);
+}
+
+
+void
+on_exit_toolbutton_clicked             (GtkToolButton   *toolbutton,
+                                        gpointer         user_data)
+{
+	
+	GtkWidget *dialog5;
+	dialog5=create_exit_system_dialog();
+	gtk_widget_show(dialog5);
+}
+
+
+void
+on_creat_toolbutton_clicked            (GtkToolButton   *toolbutton,
+                                        gpointer         user_data)
+{
+
+    GtkWidget *class_dialog1;
+	class_dialog1= creat_class_dialog();
+	gtk_widget_show(class_dialog1);
+
+}
+
+
+void
+on_cancel_toolbutton_clicked           (GtkToolButton   *toolbutton,
+                                        gpointer         user_data)
+{
+	
+    GtkWidget *dialog4;
+	dialog4=create_cancle_class_dialog();
+	gtk_widget_show(dialog4);
+
+}
+
+
+void
+on_tech_toolbutton_clicked             (GtkToolButton   *toolbutton,
+                                        gpointer         user_data)
+{
+	CRCLMSG send_mes;
+	
+    CRCLTeacherSwitchMode mode_change;
+	
+	mode_change.GroupID=client_comm.GroupID;
+	mode_change.ModeType=1;
+	class_state=1;
+	send_mes.rclType=1080;
+	send_mes.msglen=sizeof(mode_change);
+	memcpy(send_mes.msg,&mode_change,sizeof(mode_change));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR008,ERROR_S008);
+    	perror("send swith to teach mode message failed!");
+		return;
+	}
+	
+	gtk_widget_set_sensitive (modetech, FALSE);
+	gtk_widget_set_sensitive (tech_toolbutton, FALSE);
+	
+	gtk_widget_set_sensitive (modecomu, TRUE);
+	gtk_widget_set_sensitive (commu_toolbutton, TRUE);
+		
+    gtk_widget_set_sensitive (allow_chat_toolbutton, TRUE);
+	
+
+	
+}
+
+
+void
+on_commu_toolbutton_clicked            (GtkToolButton   *toolbutton,
+                                        gpointer         user_data)
+{
+
+
+	CRCLMSG send_mes;
+	
+	CRCLTeacherSwitchMode mode_change;
+	
+	mode_change.GroupID=client_comm.GroupID;
+	mode_change.ModeType=0;
+	class_state=0;
+	send_mes.rclType=1080;
+	send_mes.msglen=sizeof(mode_change);
+	memcpy(send_mes.msg,&mode_change,sizeof(mode_change));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR008,ERROR_S008);
+    	perror("send swith to communicate mode message failed!");
+		return;
+	}
+	
+	
+	gtk_widget_set_sensitive (modetech, TRUE);
+	gtk_widget_set_sensitive (tech_toolbutton,TRUE);
+	
+	gtk_widget_set_sensitive (modecomu, FALSE);
+	gtk_widget_set_sensitive (commu_toolbutton,FALSE);
+	if(allow_chat_set==1)		
+	gtk_tool_button_set_label((GtkToolButton*)allow_chat_toolbutton,pmodeswich);   
+	gtk_widget_set_sensitive (allow_chat_toolbutton, FALSE);
+	
+
+	
+	
+	
+}
+
+
+void
+on_student_clist_select_row                   (GtkCList        *clist,
+                                        gint             row,
+                                        gint             column,
+                                        GdkEvent        *event,
+                                        gpointer         user_data)
+{  
+	client_ts_communicate::studentlist_mutex.Lock();
+	gtk_clist_freeze( GTK_CLIST(student_clist) );
+	
+    gint now_cur = GTK_CLIST(student_clist)->focus_row;
+	gtk_clist_thaw( GTK_CLIST(student_clist) );
+	client_ts_communicate::studentlist_mutex.Unlock();
+	gchar *text;
+
+	if(is_focus_set==0&&class_state==0){
+	client_ts_communicate::studentlist_mutex.Lock();
+		 gtk_clist_freeze( GTK_CLIST(student_clist) );
+		gtk_clist_get_text(GTK_CLIST(student_clist),now_cur, 0, &text);
+		 gtk_clist_thaw(GTK_CLIST(student_clist));
+		 client_ts_communicate::studentlist_mutex.Unlock();
+      clist_focusid=atoi(text);
+       	printf("get focuse id is %d\n",clist_focusid);
+		
+			
+		gtk_widget_set_sensitive (concentrate_add_button, TRUE);	
+			         			
+	}	
+	
+    
+	else if(is_focus_set==1&&class_state==0)	
+		gtk_widget_set_sensitive (concentrate_concel_button, TRUE);
+	
+		
+}
+
+
+void
+on_concentrate_add_button_clicked        (GtkButton       *button,
+                                        gpointer         user_data)
+{
+	CRCLMSG send_mes;
+	
+	if(is_focus_set==0)    
+	{
+			
+		CRCLTeacherAllowClientFocus teacher_allow;
+	
+		teacher_allow.TeacherID=client_comm.TeacherID;
+		teacher_allow.ClientID=clist_focusid;
+		teacher_allow.GroupID=client_comm.GroupID;
+	
+		send_mes.rclType=1050;
+		send_mes.msglen=sizeof(teacher_allow);
+		memcpy(send_mes.msg,&teacher_allow,sizeof(teacher_allow));
+	
+		if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+		{
+			Error_dia(ERROR009,ERROR_S009);
+			perror("send allow student focus failed!");
+			return;
+		}
+		
+		gtk_widget_set_sensitive (concentrate_add_button, FALSE);
+	}
+			
+}
+
+
+void
+on_concentrate_concel_button_clicked    (GtkButton       *button,
+                                        gpointer         user_data)
+{
+	CRCLMSG send_mes;
+	
+	if(is_focus_set==1){
+		CRCLTeacherCancelClientFocus teacher_cancel;
+		
+		teacher_cancel.TeacherID=client_comm.TeacherID;
+		teacher_cancel.ClientID=clist_focusid;
+		teacher_cancel.GroupID=client_comm.GroupID;
+		
+		send_mes.rclType=1060;
+		send_mes.msglen=sizeof(teacher_cancel);
+		memcpy(send_mes.msg,&teacher_cancel,sizeof(teacher_cancel));
+	
+		if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+		{
+			Error_dia(ERROR011,ERROR_S011);
+			perror("send cancel student focus failed!");
+			return;
+		}
+		
+		gtk_widget_set_sensitive (concentrate_concel_button, FALSE);
+	}
+}
+
+
+void send_chat_entry()
+{
+	const char *entry1=gtk_entry_get_text(GTK_ENTRY(chat_entry));
+	upper1=GTK_ADJUSTMENT(adj)->upper;
+	page_size1=GTK_ADJUSTMENT(adj)->page_size;
+	step=GTK_ADJUSTMENT(adj)->step_increment;
+	value=upper1-page_size1+step;
+	if((*entry1)==NULL)
+		return;
+	
+	CRCLMSG send_mes;
+    
+	CRCLTeacherTextBroadcast teacher_text;
+	teacher_text.ClientID=client_comm.TeacherID;
+	teacher_text.GroupID=client_comm.GroupID;
+   	memset(teacher_text.Info,0,1024);
+	teacher_text.InfoLength=strlen(entry1)>=1000?1000:strlen(entry1);
+	
+	if(strlen(entry1)>=1000){
+	
+		 memcpy(teacher_text.Info,entry1,1000);
+		
+	}
+	else
+		strcpy(teacher_text.Info,entry1);
+	
+	
+	send_mes.rclType=1000;
+	send_mes.msglen=sizeof(teacher_text);
+	memcpy(send_mes.msg,&teacher_text,sizeof(teacher_text));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR013,ERROR_S013);
+    	perror("send chat message failed!");
+	}
+
+	char teacher_chat[1000];
+	strcpy(teacher_chat,pteacher_chat);  
+	strcat(teacher_chat,teacher_text.Info);
+	strcat(teacher_chat,"\n");
+	client_comm.get_text_from_msg(teacher_chat);
+	
+	gtk_adjustment_set_value (GTK_ADJUSTMENT (adj), value);
+	
+	gtk_entry_set_text (GTK_ENTRY(chat_entry),"");
+		
+}
+
+void
+on_chat_button_clicked                   (GtkButton       *button,
+                                        gpointer         user_data)
+{
+	send_chat_entry();
+	
+}
+
+
+void on_chat_entry_activate(GtkWidget *widget,GtkWidget *entry)
+{
+	send_chat_entry(); 
+}
+
+
+void on_allow_chat_toolbutton_clicked       (GtkToolButton   *toolbutton,
+                                        gpointer         user_data)
+{  
+   if(allow_chat_set==0)	
+   {
+   CRCLMSG send_mes;
+   CRCLTeacherIfAllowChat allow_chat;
+   allow_chat.GroupID=client_comm.GroupID;
+   allow_chat.Check=0;
+   send_mes.rclType=1090;
+   send_mes.msglen=sizeof(allow_chat);
+   memcpy(send_mes.msg,&allow_chat,sizeof(allow_chat));
+   if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR019,ERROR_S019);
+    	perror("send not_allow_chat message failed!");
+		return;
+	}
+	printf("stop/n");	
+	
+	gtk_tool_button_set_label(toolbutton,_(palwcht));  
+	
+   }
+   if(allow_chat_set==1)
+   {
+   CRCLMSG send_mes;
+   CRCLTeacherIfAllowChat allow_chat;
+   allow_chat.GroupID=client_comm.GroupID;
+   allow_chat.Check=1;
+   send_mes.rclType=1090;
+   send_mes.msglen=sizeof(allow_chat);
+   memcpy(send_mes.msg,&allow_chat,sizeof(allow_chat));
+   if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR020,ERROR_S020);
+    	perror("send allow_chat message failed!");
+		return;
+	}
+	printf("allow/n");
+	gtk_tool_button_set_label(toolbutton,pmodeswich); 
+	
+   }
+   	   
+}
+void  
+on_advance_button_clicked        (GtkButton       *button,
+                                        gpointer         user_data)
+{
+gtk_widget_set_sensitive(enserverport,TRUE);
+}
+
+
+
+
+
+
+
+void  
+on_work_mode_activate        ( GtkMenuItem     *menuitem,
+                                        gpointer         user_data)
+{
+	GtkWidget *work_dialog;
+	work_dialog=create_work_mode_dialog ();
+	gtk_widget_show(work_dialog);
+}
+
+void  
+on_rec_toolbutton_clicked    (GtkToolButton       *toolbutton,
+                                        gpointer         user_data)   
+{   
+
+
+	switch(record_courseware_set)
+	  {    
+          	  
+		  case 0:
+			  GtkWidget* dialog6;
+              dialog6=create_rec_delay_set_dialog();
+              gtk_widget_show(dialog6);
+		 
+		
+			break;
+			
+			case 1:
+			GtkWidget* dialog3;
+            dialog3=create_exit_rec_dialog();
+            gtk_widget_show(dialog3);	
+         			
+		
+			break;
+			default:
+				break;
+			
+		}
+	}
+	  
+    		  
+
+void  
+on_radiobutton_work_clicked(GtkButton       *button,
+                                        gpointer         user_data)   
+{
+    	
+	switch((int) user_data)
+	{
+		case 0:
+			g_temp_work_mode=0;
+			break;
+		case 1:
+			g_temp_work_mode=1;
+			break;
+	}
+	printf("%d in here!\n",g_temp_work_mode);
+	
+}
+
+void  
+on_work_cancel_but_clicked (GtkButton       *button,
+                                        gpointer         user_data) 
+{
+	gtk_widget_destroy(GTK_WIDGET(user_data));
+   	
+}
+
+
+void   
+on_work_ok_but_clicked (GtkButton       *button,
+                                        gpointer         user_data) 
+{
+	g_work_mode=g_temp_work_mode;
+	switch(g_work_mode) 
+	{
+		case 0:
+			    gtk_widget_set_sensitive (rec_toolbutton, FALSE);
+		        gtk_widget_set_sensitive (set_item, TRUE);
+		        gtk_widget_set_sensitive (set_toolbutton, TRUE);
+				gtk_widget_destroy(GTK_WIDGET(user_data));
+		break;
+		case 1:
+			   	gtk_widget_set_sensitive (rec_toolbutton, TRUE);
+		        gtk_widget_set_sensitive (set_item, FALSE);
+		        gtk_widget_set_sensitive (set_toolbutton, FALSE);
+		        gtk_widget_destroy(GTK_WIDGET(user_data));
+		break;
+	default:
+   break;		
+	}
+}
+
+
+
+void  
+on_exit_rec_cancel_clicked ( GtkButton       *button,
+                                        gpointer         user_data) 
+{
+	record_courseware_set=0;
+	gtk_widget_destroy(GTK_WIDGET(user_data)); 
+}
+
+
+void  
+on_exit_rec_yes_clicked    ( GtkButton       *button,
+                                        gpointer         user_data) 
+    
+{  
+	
+			printf("%d stop recording",record_courseware_set);  
+			
+			record_courseware_set=0;
+			
+			gtk_widget_destroy(GTK_WIDGET(user_data)); 
+			exit(1);
+}
+
+
+
+void on_clearchatitem_activate  ( GtkMenuItem     *menuitem,
+                                        gpointer         user_data)
+{
+	gtk_text_buffer_get_start_iter(commu_buffer,&commu_start);
+	gtk_text_buffer_delete(commu_buffer,&commu_start,&commu_end);
+}
+
+
+void on_exit_class_cancel_clicked ( GtkButton       *button,
+                                        gpointer         user_data) 
+{  
+	gtk_widget_destroy(GTK_WIDGET(user_data)); 
+}
+
+void on_exit_class_yes_clicked ( GtkButton       *button,
+                                        gpointer         user_data)
+{   
+	gtk_widget_destroy(GTK_WIDGET(user_data));
+	CRCLMSG send_mes;
+
+	TRCDestoryGroup DestoryGroup;
+	send_mes.rclType=10010;
+	DestoryGroup.TeacherID=client_comm.TeacherID;
+	DestoryGroup.GroupID=client_comm.GroupID;
+	
+	send_mes.msglen=sizeof(DestoryGroup);
+	memcpy(send_mes.msg,&DestoryGroup,sizeof(DestoryGroup));
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+		Error_dia(ERROR006,ERROR_S006);
+    	perror("send failed!");
+		return;
+	}
+	 client_ts_communicate::studentlist_mutex.Lock();
+	 gtk_clist_freeze( GTK_CLIST(student_clist) );
+	 gtk_clist_clear(GTK_CLIST(student_clist));
+	 gtk_clist_thaw(GTK_CLIST(student_clist));
+	 client_ts_communicate::studentlist_mutex.Unlock();
+	
+		
+			
+			is_focus_set=0;
+			
+			gtk_widget_set_sensitive (creatclass,TRUE);
+			gtk_widget_set_sensitive (creat_toolbutton,TRUE);
+			
+			gtk_widget_set_sensitive (stopclass,FALSE);
+			gtk_widget_set_sensitive (cancel_toolbutton,FALSE);
+			
+			gtk_widget_set_sensitive (modetech, FALSE);
+			gtk_widget_set_sensitive (tech_toolbutton,FALSE);
+	
+	        gtk_widget_set_sensitive (modecomu, FALSE);
+			gtk_widget_set_sensitive (commu_toolbutton,FALSE);
+			
+			gtk_widget_set_sensitive (chat_button, FALSE);
+			if(allow_chat_set==1)		
+	        gtk_tool_button_set_label((GtkToolButton*)allow_chat_toolbutton,pmodeswich);  
+		    gtk_widget_set_sensitive (allow_chat_toolbutton, FALSE);
+			
+}
+
+void on_exit_system_cancel_clicked   ( GtkButton       *button,
+                                        gpointer         user_data)
+{ 
+	gtk_widget_destroy(GTK_WIDGET(user_data));
+}
+
+void on_exit_system_yes_clicked   ( GtkButton       *button,
+                                        gpointer         user_data)
+{
+	CRCLMSG send_mes;
+	CRCLTeacherLogout 	Teacher_logout;
+	
+	Teacher_logout.TeacherID=client_comm.TeacherID;
+	
+	send_mes.rclType=5030;
+	send_mes.msglen=sizeof(Teacher_logout);
+	memcpy(send_mes.msg,&Teacher_logout,sizeof(Teacher_logout));
+	
+	if(client_comm.send_mes(send_mes,send_mes.msglen+8)<0)
+	{
+    	perror("send logout message failed!");
+	}
+	
+	client_comm.close_socket(2);
+
+	
+	
+	gtk_widget_destroy(GTK_WIDGET(user_data));
+	 gtk_main_quit();
+	
+	}
+	
+//mainwindow 
+gint	window1_delete_event      (GtkWidget       *widget,
+                                        GdkEvent        *event,
+                                        gpointer         user_data)
+{
+	
+	GtkWidget *dialog5;
+	dialog5=create_exit_system_dialog();
+	gtk_widget_show(dialog5);
+	
+	return TRUE;
+}
+
+
+void 
+on_rec_delay_cancel_clicked          ( GtkButton       *button,
+                                        gpointer         user_data)
+{
+	
+	gtk_widget_destroy(GTK_WIDGET(user_data));
+}
+
+void 
+on_rec_delay_yes_clicked          ( GtkButton       *button,
+                                        gpointer         user_data)
+{   
+    delay_time=atoi(gtk_combo_box_get_active_text(GTK_COMBO_BOX(user_data)));
+	printf("record delay time is %d",delay_time );
+	if (delay_time<0||delay_time>60)
+		delay_time=5;
+	
+	static char str1[255] ;
+	char strpath[255] = "/root/kejian/";
+
+	if(record_courseware_set==0){
+	
+	time_t now;
+  
+	now = time(0);
+	tm *tnow = localtime(&now);
+	sprintf(strpath+strlen(strpath), "%d_%0.2d_%0.2d_%0.2d_%0.2d", 1900+tnow->tm_year,
+         tnow->tm_mon+1,
+         tnow->tm_mday,
+         tnow->tm_hour,
+         tnow->tm_min);
+	printf("%s\n", strpath);
+	
+
+	
+	
+	
+    }
+	 	gtk_tool_button_set_label((GtkToolButton*)rec_toolbutton, _(pextrcd));   
+			
+			
+			
+			printf("%d recording",record_courseware_set);  
+			
+			record_courseware_set=1;
+	        gtk_widget_destroy(GTK_WIDGET(rec_delay_set_dialog));
+}

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/callbacks.hh
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/callbacks.hh?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/callbacks.hh (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/callbacks.hh Wed May 13 07:44:26 2009
@@ -0,0 +1,197 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+#include <gtk/gtk.h>
+
+#include "languagechoose.h" 
+
+#ifndef _CALLBACK_H
+#define _CALLBACK_H
+
+gboolean ncteacher_timer_callback(void *);
+
+void
+on_login_activate                      (GtkMenuItem     *menuitem,
+                                        gpointer         user_data);
+
+void
+on_exitsys_activate                       (GtkMenuItem     *menuitem,
+                                        gpointer         user_data);
+
+void
+on_creatclass_activate               (GtkMenuItem     *menuitem,
+                                            gpointer         user_data);
+void
+on_stopclass_activate              (GtkMenuItem     *menuitem,
+                                           gpointer         user_data);
+void
+on_modecomu_activate                   (GtkMenuItem     *menuitem,
+                                        gpointer         user_data);
+void
+on_modetech_activate                   (GtkMenuItem     *menuitem,
+                                        gpointer         user_data);
+
+void
+on_set_activate                        (GtkMenuItem     *menuitem,
+                                        gpointer         user_data);
+
+void
+on_stuimg_activate                     (GtkMenuItem     *menuitem,
+                                        gpointer         user_data);
+
+void
+on_techimg_activate                    (GtkMenuItem     *menuitem,
+                                        gpointer         user_data);
+
+void
+on_login_cancelbutton_destroy (GtkObject       *object, gpointer         user_data);
+
+void
+on_loginokbutton_clicked                (GtkButton       *button,
+                                        gpointer         user_data);
+void
+on_networkokbutton_clicked   (GtkButton       *button, gpointer         netdialo);
+
+void
+on_networkcancelbutton_clicked (GtkObject       *object, gpointer         user_data);
+
+
+void
+on_creat_cancelbut_clicked             (GtkButton       *button,
+                                        gpointer         user_data);
+
+void
+on_creat_okbutton_clicked             (GtkButton       *button,
+                                        gpointer         user_data);
+void
+on_advance_button_clicked        (GtkButton       *button,
+                                        gpointer         user_data);								
+
+
+void
+on_set_toolbutton_clicked              (GtkToolButton   *toolbutton,
+                                        gpointer         user_data);
+
+void
+on_join_toolbutton_clicked             (GtkToolButton   *toolbutton,
+                                        gpointer         user_data);
+
+void
+on_exit_toolbutton_clicked             (GtkToolButton   *toolbutton,
+                                        gpointer         user_data);
+
+void
+on_creat_toolbutton_clicked            (GtkToolButton   *toolbutton,
+                                        gpointer         user_data);
+
+void
+on_cancel_toolbutton_clicked           (GtkToolButton   *toolbutton,
+                                        gpointer         user_data);
+
+void
+on_tech_toolbutton_clicked             (GtkToolButton   *toolbutton,
+                                        gpointer         user_data);
+
+void
+on_commu_toolbutton_clicked            (GtkToolButton   *toolbutton,
+                                        gpointer         user_data);
+
+void
+on_concentrate_add_button_clicked        (GtkButton       *button,
+                                        gpointer         user_data);
+
+void
+on_concentrate_concel_button_clicked    (GtkButton       *button,
+                                        gpointer         user_data);
+
+void
+on_chat_button_clicked                   (GtkButton       *button,
+                                        gpointer         user_data);
+void										
+on_chat_entry_activate						(GtkWidget *widget,
+											GtkWidget *entry);
+
+void
+on_student_clist_select_row                   (GtkCList        *clist,
+                                        gint             row,
+                                        gint             column,
+                                        GdkEvent        *event,
+                                        gpointer         user_data);
+
+
+void
+on_allow_chat_toolbutton_clicked       (GtkToolButton   *toolbutton,
+                                        gpointer         user_data);
+
+void
+on_radiobutton_choose_clicked          (GtkButton       *button,
+                                        gpointer         user_data);
+
+void
+on_work_mode_activate        ( GtkMenuItem     *menuitem,
+                                        gpointer         user_data);									
+										
+void
+on_rec_toolbutton_clicked    (GtkToolButton       *toolbutton,
+                                        gpointer         user_data); 
+void
+on_radiobutton_work_clicked(GtkButton       *button, 
+                                       gpointer         user_data);
+								
+void										
+on_work_ok_but_clicked (GtkButton       *button,
+                                        gpointer         user_data);
+void
+on_work_cancel_but_clicked (GtkButton       *button,
+                                        gpointer         user_data); 
+void
+on_exit_rec_cancel_clicked ( GtkButton       *button,
+                                        gpointer         user_data) ;
+void
+on_exit_rec_yes_clicked ( GtkButton       *button,
+                                        gpointer         user_data) ;
+void 
+on_clearchatitem_activate  ( GtkMenuItem     *menuitem,
+                                        gpointer         user_data);
+void 
+on_exit_class_cancel_clicked ( GtkButton       *button,
+                                        gpointer         user_data) ;
+void 
+on_exit_class_yes_clicked ( GtkButton       *button,
+                                        gpointer         user_data); 
+
+void 
+on_exit_system_cancel_clicked   ( GtkButton       *button,
+                                        gpointer         user_data);
+void 
+on_exit_system_yes_clicked   ( GtkButton       *button,
+                                        gpointer         user_data);
+gint	
+window1_delete_event      (GtkWidget       *widget,
+                                        GdkEvent        *event,
+                                        gpointer         user_data);
+void 
+on_rec_delay_cancel_clicked          ( GtkButton       *button,
+                                        gpointer         user_data);
+void 
+on_rec_delay_yes_clicked          ( GtkButton       *button,
+                                        gpointer         user_data);
+										
+
+										
+#endif



Mime
View raw message