易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 : linux

(一)Linux网络编程

http://blog.csdn.net/jenshy/archive/2006/04/18/667944.aspx
(一)Linux网络编程--网络知识介绍
Linux网络编程
--
网络知识介绍
客户端和服务端

       
网络程序和普通的程序有一个最大的区别是网络程序是由两个部分组成的
--
客户端和服务器端
.
客户端
       
在网络程序中,如果一个程序主动和外面的程序通信,那么我们把这个程序称为客户端程序。

比如我们使用
ftp
程序从另外一
       
个地方获取文件的时候,是我们的
ftp
程序主动同外面进行通信(获取文件),

所以这个地方我们的
ftp
程序就是客户端程序。

服务端
       
和客户端相对应的程序即为服务端程序。被动的等待外面的程序来和自己通讯的程序称为服务端程序。

       
比如上面的文件获取中,另外一个地方的程序就是服务端,我们从服务端获取文件过来。

互为客户和服务端
       
实际生活中有些程序是互为服务和客户端。在这种情况项目,

一个程序既为客户端也是服务端。

常用的命令

    ......

Linux网络编程入门

(一)Linux网络编程--网络知识介绍
Linux网络编程--网络知识介绍
客户端和服务端
        网络程序和普通的程序有一个最大的区别是网络程序是由两个部分组成的--客户端和服务器端.
客户端
        在网络程序中,如果一个程序主动和外面的程序通信,那么我们把这个程序称为客户端程序。 比如我们使用ftp程序从另外一
        个地方获取文件的时候,是我们的ftp程序主动同外面进行通信(获取文件), 所以这个地方我们的ftp程序就是客户端程序。
服务端
        和客户端相对应的程序即为服务端程序。被动的等待外面的程序来和自己通讯的程序称为服务端程序。
        比如上面的文件获取中,另外一个地方的程序就是服务端,我们从服务端获取文件过来。
互为客户和服务端
        实际生活中有些程序是互为服务和客户端。在这种情况项目, 一个程序既为客户端也是服务端。
常用的命令
        由于网络程序是有两个部分组成,所以在调试的时候比较麻烦,为此我们有必要知道一些常用的网络命令
netstat
& ......

在Linux下安装Quartus II

本文介绍如何在Centos 5.3上安装Quartus II 7.2 (这是我手头那块开发版配套版本,其他版本没有试过,估计也差不多)
1. 进入光碟目录
[xzeng@xzeng-desktop linux]$ pwd
/media/Altera Software/quartus/linux
2. 运行install进行安装
[root@esig linux]# ./install
Quartus II 7.2 Installation Script for UNIX Workstations
Copyright (c) Altera Corporation 2007
Type Ctrl+C <Return> to quit this installation script at any time.
Use this installation script to install the Quartus II software,
including sample/tutorial files, interfaces to other EDA tools,
and the Quartus II device family information.
Press <Return> to continue normal installation or type <s>
to select the components to install: s
Custom install selected ...
Type the full pathname of the directory where you want to
install the Quartus II 7.2 software.
(default: /opt/altera7.2/quartus7.2):
You may install any or all of the following Altera device families:
Enter this:      &n ......

一个简单的linux下网络程序实例-网络编程入门 收藏


http://blog.csdn.net/manio/archive/2006/10/13/1333202.aspx
/*
 server 
*/
#include 
<
stdio.h
>
#include 
<
sys
/
types.h
>
#include 
<
netinet
/
in
.h
>
#include 
<
sys
/
socket.h
>
#include 
<
netdb.h
>
#include 
<
unistd.h
>
#include 
<
string
.h
>
#include 
<
arpa
/
inet.h
>
#define
 PORT 8848
#define
 BACKLOG 1
main()
{
    
int
 listenfd,connectfd;
    
struct
 sockaddr_in server;
    
struct
 sockaddr_in client;
    
int
 sin_size;
    
if
 (( listenfd 
=
 socket(AF_INET, SOCK_STREAM, 
0
)) 
==
 
-
1
)
    {
        perror(
"
Creating socket f ......

一个简单的linux下网络程序实例-网络编程入门

系统:fedora core 5
服务器端程序:
/* server */
#include <stdio.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#define PORT 8848
#define BACKLOG 1
main()
{
    int listenfd,connectfd;
    struct sockaddr_in server;
    struct sockaddr_in client;
    int sin_size;
    if (( listenfd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
    {
        perror("Creating socket failed.");
        return 0;
    }
    int opt ......

如何按装LINUX虚拟机

下载VMWare解压后根据提示正触安装VMWare到硬盘中
(1) 建立虚拟机
A.用鼠标左建双击桌面中的"VMware workstation"图标,运行虚拟机
B.建立一台虚拟机。点击“FILE(文件)”-“NEW(新建)”--“NewVirtual Machine(
新建虚拟机)”,弹出虚拟机创建菜单。
C.根据向导一步一步地创建虚拟机,首先选择安装方式是“TYPICAL(典型)”还是
“CUSTOM(自定义)”安装。 我这里选择典型。
D.因为这里是用于安装REDHAT,所以在Guest operating system(客户操作系统)“
中选择”LINUX“,点击下一步。
E.在Virtual machine name(虚拟机名字)中输入你想建立的虚拟机的名字
F.在Location(位置)中选择虚拟机的安装位置。因为会在虚拟机中安装操作系统
和应用软件,所以建议将虚拟机安装在一个有较大空间的磁盘分区中
G.如果你的电脑连接在网络中,那么选择一个合适的网络环境。我这里选择
Use bridged net-working(使用路由网络)
H.点击finish,返回VMWARE主界面,LINUX虚拟机就建好了。
2. 安装操作系统
A. 选中LINUX虚拟机,点击VMWARE工具栏中的Power ON按钮,启动LINUX虚拟机
B.然后插入 ......
总记录数:5772; 总页数:962; 每页6 条; 首页 上一页 [924] [925] [926] [927] 928 [929] [930] [931] [932] [933]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号