Beruflich Dokumente
Kultur Dokumente
ISSN (Online):2278-5299
INTRODUCTION
The Berkeley forms of UNIX introduced the socket interface as a
new model of communication, which extends the concept of a pipe.
Hence LINUX also incorporated socket interface[1] . Socket can be
used in the same way as pipes, but they include communication
across a network of computers. A program on one machine can use
sockets to communicate with a process on another, which allows for
client/server systems that are scattered across a network[1]. Sockets
may also be used to handle processes on the same machine. Also,
the sockets interface has been made available for Windows via a
publicly available specification called WinSock[1]. Windows socket
services are delivered by a Winsock.dll system file. Thus, Windows
programs can communicate across a network to Linux and UNIX
computers and vice versa providing client/server systems. Although
the encoding interface for WinSock isnt quite the same as UNIX
sockets.[1]
System Calls:
Concept Of Pipes:
ISSN: 2278-5299
389
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
FILE *fp;
. .. . . . .
ISSN: 2278-5299
z
=
bind(host_socket,
sizeof(host_add));
(struct
sockaddr
*)&host_add,
390
fp = popen(BURRER, "r");
........
.......
......
r
=
bind(host_socket,
sizeof(host_add));
..........
(struct
sockaddr
*)&host_add,
fgets(B,400, stdin);
remote_socket = socket(AF_INET, SOCK_DGRAM, 0);
/* Here the command is sent to remote machine through UDP */
r = sendto(remote_socket,B, strlen(B),
*)&remote_add, sizeof(remote_add));
0,
(struct
sockaddr
printf("%s", B);
. . . . . . . . . . . .. . .
B.CONTROLLER PROGRAM:
#include <stdio.h>
. .. .. . . . .. .
ISSN: 2278-5299
391
REFERENCES
1.
Neil
Matthew,
Richard
Stones
Programming,Third Edition Pg.587
,Beginning
Linux
2.
3.
4.
5.
APPLICATIONS OF RSC
Now a days every network is using Sockets as their base for
packet transfer from one machine to the other so with the use of
RSC you can control your System from any device (it could be
another system , a mobile or your touch pads ). It can change the
way of using the network.
1. For Smart Phones:
A simple smart phone supporting JAVA, ANDROID, iOS and
BLACKBERRY can utilize concept of sockets to transfer
commands to the remote device where the program is running. Only
some commands of controller needed to be modified on the bases of
the platform .
2. For Tablets:
Tablets like iPad ,Samsung Galaxy, Touch Pad, Akash , etc can also
pass the command to control their associate remote system . As
Android is a successor of Java so it also supports sockets , hence can
be designed to pass UNIX or LINUX commands.
CONCLUSION
With the expansion and wide use of LINUX & UNIX base OS,
RSC concept can ease the remote monitoring system. It provides
you with limitless access to your remote system and gives you a
handy resource/device to use a complicated machine. It provides
you controls to supervise and maintain your system from any part of
the world. This simple code along with java socket program can be
used as a full remote desktop controller. As android also uses
LINUX shells so this can be used to control android mobiles
ISSN: 2278-5299
392