linux tuxedo 入门
折腾了大半天都终把tuxedo安装,并写好第一个例子,即然安装可以使用UI的方式进行安装,安装完成后要进行环境变量的配置,把tuxedo目录中的tux.env的配置,添加到/home/oracle/.bash_profile,因为我是以oracle用户来安装oracle 和tuxedo 的。
服务器端代码simpserv.c:
#include <stdio.h>
#include <ctype.h>
#include <atmi.h>
#include <userlog.h>
#if defined(_STDC_)||defined(_cplusplus)
tpsvrinit(int argc,char *argv[])
#else
tpsvrinit(argc,argv)
int argc;
char **argv;
#endif
{
argc=argc;
argv=argv;
userlog("Welcome to the simple server");
return(0);
}
#ifdef _cplusplus
extern "C"
#endif
#if defined(_STDC_)||defined(_cplusplus)
void TOUPPER(TPSVCINFO *rqst)
#else
void TOUPPER(rqst)
TPSVCINFO *rqst;
#endif
{
int i;
for(i=0;i<rqst->len-1;i++)
rqst->data[i]=toupper(rqst->data[i]);
tpreturn(TPSUCCESS,0,rqst->data,0L,0);
}
编译方法指令:buildserver -o simpserv -f simpserv.c -s TOUPPER
客户端代码simpcl.c:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "atmi.h"
#if defined(_STDC_)||defined(_cplusplus)
main(int argc,char *argv[])
#else
main(argc,argv)
int argc;
char *argv[];
#endif
{
char *sendbuf,*rcvbuf,*ptr;
char *msg="Tuxedo is powerful.";
long sendlen,rcvlen;
int ret;
/*开始连接*/
if(tpinit((TPINIT *)NULL)==-1 ){
(void)fprintf(stderr,"Tpinit failed\n");
exit(1)
相关文档:
启动第一步--加载BIOS
当你打开计算机电源,计算机会首先加载BIOS信息,BIOS信息是如此的重要,以至于计算机必须在最开始就找到它。这是因为BIOS中包含了CPU的相关信息、设备启动顺序信息、硬盘信息、内存信息、时钟信息、PnP特性等等。在此之后,计算机心里就有谱了,知道应该去读取哪个硬件设备了。
启动第二步-- ......
1.
In /etc/pacman.conf, add 2 lines:
[ati]
Server = http://dl.dropbox.com/u/4832298/x86_64
from this repo, install:
kernel26-pm, ......
我大部分时间使用Linux操作系统(Debian
Lenny),不过很多时间还是要Windows的(比方说网上银行、看doc文档、看Windows专用的网站、war3),双系统是一个解决方案,不
过老切来切去真累。今天终于爆发了,跑到太平洋2楼买了条2G的内存,加上自己的1G内存,开始折腾虚拟机。一开始先试了KVM,发现我的CPU不支持,
只能作罢 ......
嵌入式Linux开发需要的参考资料
作者: 来源于: 发布时间:2008-10-6 20:45:00
引导:
如需获得对
vmlinux
和
zimage
之间区别的极好解释,请在
Alessandro Rubini
编写的
“
Kernel Configuration: dealing with the unexpected
(
Linux Magazine
)的一文中找到
&ld ......