摘要
本文通过简单介绍TCP/IP协议的Socket界面以及TCP的client客户进程建立,TCP的Server服务器进程的建立,使读者初步了解TCP/IP的网络开发界面。并通过一个具体实例及其源程序,使读者了解如何实现在TCP/IP协议网络中任务间的数据通讯。本文最后指出,由此用户可在网络应用层上进行许多网络开发工作,如远地过程调用(RPC)等。
TOP/IP is a important network protocol suite, which provides. flexible and convenient functions for network developing, especially in Internet. How can wa realize the data communication in computer network? The task-to-task data commu-nication is a important basic method. Usually, there are many kinds of programming interfaces in each different network protocol, which is for programmer to develop network functions. In TCP/IP, there is a socket interface, we can use this socket and C language to realize simply task-to-task data communication. This paper presents, an example of task-to-task data communication in TOP/IP network, it ia used to either transfer file or be called as subroutine by user's application program. It gives the procedures of client and server built. Finally, it indicates that users can develop much more work directly on network application layer based on this socket and example, for instance, remote procedure call (RPC).
出处
《计算机应用与软件》
CSCD
1995年第2期19-28,共10页
Computer Applications and Software
关键词
TCP/IP协议
数据通信
计算机网络
TOP/IP protocol, task-to-task, data communication, socket, network, client, server, port.