EmbLogic's Blog

MDC project output:

Final output of MDC project:

(In readd)
(In chkfile)
file read successfully as fd is 5
(In printfile)
the size of the file is:47
the content is in the file:
when the going gets tough the tough gets going
(In masterarray)
(In printma)
unique characters in master array are:
when tgoisu
(In mafile)
unique characters are written in mafile succesfully with a file descriptor: 11
the size of master array file is:11
(In codelength)
the code lenght is:4
(In compression)
the compress file is written successfully with a file discriptor:7
the size of the compression file is:24
the content is in compression file:
2T!d?cdRIujABujA&?d?c
(In decompression)
Decompress data has written on decompfile sucessfully with a file descrip
the size of decompression file is:50
the decompress data is:
when the going gets tough the tough gets going???w

RCS file: func.c,v
Working file: func.c
head: 1.205
branch:
locks: strict
root: 1.205
access list:
symbolic names:
keyword substitution: kv
total revisions: 205; selected revisions: 1
description:
—————————-
revision 1.205 locked by: root;
date: 2014/09/24 22:47:25; author: root; state: Exp; lines: +236 -210
*** empty log message ***
=============================================================================

RCS file: main.c,v
Working file: main.c
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 1
description:
—————————-
revision 1.6 locked by: root;
date: 2014/09/24 18:57:00; author: root; state: Exp; lines: +1 -1
*** empty log message ***
=============================================================================

RCS file: ./header.h,v
Working file: ./header.h
head: 1.10
branch:
locks: strict
root: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 1
description:
—————————-
revision 1.10 locked by: root;
date: 2014/09/24 18:54:42; author: root; state: Exp; lines: +1 -0
include printfile header file.
=============================================================================

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

process replacement followed by inter process comm. using file

This is the output:

[root@localhost ipc]# ./p_comm
File Open Successfully
This is Parent with id=31340
This is child with id=31341
This is a new program which replaced the child
Write By Child:: Success
Read by Parent: Success
    Child Said:Hello Parent
Write by Parent: Success
Read By Child:: Success
    Parent said:Hi Child How are you?
Write By Child:: Success
Read by Parent: Success
    Child Said:I am Fine. U Tell?
Write by Parent: Success
Read By Child:: Success
    Parent said:We are also fine.Ok Bye
Child exit successfully and code is 0

Log File

RCS file: RCS/p_comm.c,v
Working file: p_comm.c
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
program to communicate between two process through a file
done- opening a file in rdwr mode
convert int fd into string to make compatiple with execl argument
—————————-
revision 1.4
date: 2014/09/22 12:46:24;  author: root;  state: Exp;  lines: +13 -3
done:both read and write by parent in the same file
Note: Before executing this program make sure that “child_comm.c” file must be in the same directory
—————————-
revision 1.3
date: 2014/09/22 12:10:56;  author: root;  state: Exp;  lines: +9 -4
1st read by the parent and then reply back to child by writing into the same file
—————————-
revision 1.2
date: 2014/09/22 11:53:56;  author: root;  state: Exp;  lines: +10 -4
read the message written by child in a file
—————————-
revision 1.1
date: 2014/09/22 11:23:57;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/child_comm.c,v
Working file: child_comm.c
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
program which will replace the child to do inter process comm through file
get fd through argv[0] and than convert into integer using atoi
—————————-
revision 1.4
date: 2014/09/22 12:48:25;  author: root;  state: Exp;  lines: +12 -2
done:child repalace itself with this file using execl and this program then communicate with parent
note:this program is linked with p_comm.c
—————————-
revision 1.3
date: 2014/09/22 12:11:48;  author: root;  state: Exp;  lines: +9 -2
1st write the msg for parent and then read the msg from parent using the same file
—————————-
revision 1.2
date: 2014/09/22 11:40:06;  author: root;  state: Exp;  lines: +4 -3
got message which is to be written in file through argv[1]
write the message into file
—————————-
revision 1.1
date: 2014/09/22 11:32:27;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , | Leave a comment

Process replacement using execl

RCS file: p_replace.c,v
Working file: p_replace.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
program to replace the child process using execl()
—————————-
revision 1.2
date: 2014/09/22 10:22:30;  author: root;  state: Exp;  lines: +9 -1
use wait statement so that parent will wait till the child completed its execution
—————————-
revision 1.1
date: 2014/09/22 10:06:47;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: child.c,v
Working file: child.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
sample program which replace the child when call by child through execl()
—————————-
revision 1.1
date: 2014/09/22 10:06:07;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , | Leave a comment

Completed creating a new process using fork, how orphan process works, wait by parent till child exit

RCS file: fork.c,v
Working file: fork.c
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
program to create a duplicate process using fork
—————————-
revision 1.4
date: 2014/09/18 17:37:44;  author: root;  state: Exp;  lines: +2 -0
print child and its parent id
check that orphan process have 1 as a parent id
use sleep command to make sure that child not become orphan
—————————-
revision 1.3
date: 2014/09/18 17:34:40;  author: root;  state: Exp;  lines: +2 -2
get pid of child
print pid of parent
—————————-
revision 1.2
date: 2014/09/18 17:30:58;  author: root;  state: Exp;  lines: +11 -1
create a child process using fork
define the body of child and parent using if and else
—————————-
revision 1.1
date: 2014/09/18 17:27:22;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: fork2.c,v
Working file: fork2.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;    selected revisions: 3
description:
use multiple fork to create more child and parent process
—————————-
revision 1.3
date: 2014/09/19 12:49:25;  author: root;  state: Exp;  lines: +5 -0
*** empty log message ***
—————————-
revision 1.2
date: 2014/09/19 12:03:53;  author: root;  state: Exp;  lines: +2 -3
create more process using multiple fork statement
—————————-
revision 1.1
date: 2014/09/19 11:11:06;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: orphan.c,v
Working file: orphan.c
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
program to make a process orphan
—————————-
revision 1.4
date: 2014/09/20 09:36:08;  author: root;  state: Exp;  lines: +4 -2
make child orphan and verify with output
—————————-
revision 1.3
date: 2014/09/19 13:54:25;  author: root;  state: Exp;  lines: +19 -10
use if else to notify when the child became orphan
—————————-
revision 1.2
date: 2014/09/19 13:42:45;  author: root;  state: Exp;  lines: +4 -3
get child id
print parent id
—————————-
revision 1.1
date: 2014/09/19 13:16:57;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: wait.c,v
Working file: wait.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
parent will wait till the child exit()
—————————-
revision 1.1
date: 2014/09/20 14:26:58;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , , , | Leave a comment

block device driver

RCS file: ./RCS/init.c,v
Working file: ./init.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
Block device driver __init function (), in this function i initilize the important and required structures like struct gendisk, all the elements of that and struct sbulldev which is user defined data struture and then i initilize the struct request_queue and then inside that structure i initilize the struct request and inside that structure defined the struct bio and struct bio-vec and before that i create the sectors for my simulated dewhich is my sbulldev and then i use kmalloc for the sbulldev and the which data is defined inside the struct sbulldev, provide the memory with the help of vmalloc .
—————————-
revision 1.1    locked by: root;
date: 2014/09/20 18:43:10;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Multiple Data Compression & Encryption using Ittrative Techniques

RCS file: mdc.c,v

Working file: mdc.c

head: 1.20

branch:

locks: strict

root: 1.20

access list:

symbolic names:

keyword substitution: kv

total revisions: 20; selected revisions: 20

description:

Main function Of MDC

—————————-

revision 1.20 locked by: root;

date: 2014/09/19 19:43:44; author: root; state: Exp; lines: +16 -28

Created Master Array

—————————-

revision 1.19

date: 2002/01/02 05:05:42; author: root; state: Exp; lines: +2 -2

*** empty log message ***

—————————-

revision 1.18

date: 2002/01/02 05:04:37; author: root; state: Exp; lines: +2 -2

*** empty log message ***

—————————-

revision 1.17

date: 2002/01/02 05:01:22; author: root; state: Exp; lines: +1 -1

*** empty log message ***

—————————-

revision 1.16

date: 2002/01/02 05:00:09; author: root; state: Exp; lines: +1 -1

*** empty log message ***

—————————-

revision 1.15

date: 2002/01/02 04:56:36; author: root; state: Exp; lines: +1 -1

*** empty log message ***

—————————-

revision 1.14

date: 2002/01/02 04:55:09; author: root; state: Exp; lines: +1 -1

*** empty log message ***

—————————-

revision 1.13

date: 2002/01/02 04:54:19; author: root; state: Exp; lines: +3 -1

*** empty log message ***

—————————-

revision 1.12

date: 2002/01/02 04:35:24; author: root; state: Exp; lines: +2 -2

*** empty log message ***

—————————-

revision 1.11

date: 2002/01/02 04:33:03; author: root; state: Exp; lines: +5 -3

*** empty log message ***

—————————-

revision 1.10

date: 2002/01/02 04:27:49; author: root; state: Exp; lines: +3 -1

*** empty log message ***

—————————-

revision 1.9

date: 2002/01/02 04:25:30; author: root; state: Exp; lines: +2 -2

*** empty log message ***

—————————-

revision 1.8

date: 2002/01/02 04:24:19; author: root; state: Exp; lines: +2 -2

*** empty log message ***

—————————-

revision 1.7

date: 2002/01/02 04:20:52; author: root; state: Exp; lines: +23 -2

added function unique

it creates master arrary of unique characters

—————————-

revision 1.6

date: 2002/01/02 01:29:55; author: root; state: Exp; lines: +1 -1

*** empty log message ***

—————————-

revision 1.5

date: 2002/01/02 01:28:26; author: root; state: Exp; lines: +1 -1

*** empty log message ***

—————————-

revision 1.4

date: 2002/01/02 01:27:40; author: root; state: Exp; lines: +1 -0

*** empty log message ***

—————————-

revision 1.3

date: 2002/01/02 01:26:27; author: root; state: Exp; lines: +1 -1

added number before printing character

—————————-

revision 1.2

date: 2002/01/02 01:22:23; author: root; state: Exp; lines: +3 -1

added OUT

—————————-

revision 1.1

date: 2002/01/02 01:20:50; author: root; state: Exp;

Initial revision

RCS file: mdc.c,v
Working file: mdc.c
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;    selected revisions: 6
description:
Main function Of MDC
—————————-
revision 1.6    locked by: root;
date: 2002/01/02 01:29:55;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2002/01/02 01:28:26;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2002/01/02 01:27:40;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2002/01/02 01:26:27;  author: root;  state: Exp;  lines: +1 -1
printing character
—————————-
revision 1.2
date: 2002/01/02 01:22:23;  author: root;  state: Exp;  lines: +3 -1
added OUT for return -1
—————————-
revision 1.1
date: 2002/01/02 01:20:50;  author: root;  state: Exp;
Initial revision

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

unichar function for MDCEUIT

RCS file: mdcmain.c,v
Working file: mdcmain.c
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
main function for MDC project
—————————-
revision 1.8 locked by: root;
date: 2014/09/19 05:22:09; author: root; state: Exp; lines: +3 -4
get the master array successfully :-)))
—————————-
revision 1.7
date: 2014/09/19 05:09:58; author: root; state: Exp; lines: +44 -0
create unichar function
—————————-
revision 1.6
date: 2014/09/19 03:55:13; author: root; state: Exp; lines: +15 -2
read function completed
file readed on terminal
—————————-
revision 1.5
date: 2014/09/19 03:18:49; author: root; state: Exp; lines: +2 -1
print fd value
—————————-
revision 1.4
date: 2014/09/19 03:12:41; author: root; state: Exp; lines: +17 -1
creat open file function
—————————-
revision 1.3
date: 2014/09/19 02:06:19; author: root; state: Exp; lines: +1 -1
creat open function
—————————-
revision 1.2
date: 2014/09/19 01:58:09; author: root; state: Exp; lines: +2 -1
creat a open function to open the file
—————————-
revision 1.1
date: 2014/09/19 01:52:30; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

Call Stack

Programs written in the procedural style (as opposed to object-oriented style) are organized as a logical hierarchy of subroutine calls. In general, each subroutine call involves passing arguments from the caller to the callee. In addition, the callee may declare temporary local variables. Subroutine arguments and automatic local variables are accommodated at the top of virtual memory in an area known as the stack segment or simply as the stack. See Figure 5.

Figure 5Fig. 5 Memory map showing the stack segment.

The hierarchy of subroutine calls begins when the operating system invokes the program’s main() function in C or the MAIN program in Fortran. Under normal circumstances, it ends when “main” returns to the operating system. The entire sequence can be represented as a call graph like that in Figure 6.

Figure 6

  1. OS calls main
  2. main calls func1
  3. func1 calls func2
  4. func2 returns to func1
  5. func1 calls func3
  6. func3 returns to func1
  7. func1 returns to main
  8. main calls func4
  9. func4 returns to main
  10. main returns (exit status) to OS

Fig. 6 Typical subroutine call graph.

Before calling main, the operating system pushes the elements of the command line that was used to invoke the program on “top” of the initially empty stack. In C, the main() function has access to these arguments through the argc and argv parameters, while Fortran MAIN programs can use the IARGC and GETARG subroutines, which are non-standard extensions.

As execution commences, main pushes its automatic variables on top of the stack. This makes the stack “grow” towards lower addresses. Then, just prior to calling func1, main pushes the arguments to func1. Together, main’s automatic variables and the arguments to func1 constitute a stack frame. Stack frames accumulate on the stack as the program descends the call graph, and are dismantled as it ascends. The procedure is outlined in Figure 7 below.

Figure 7Fig. 7 Evolution of the stack segment corresponding to the call graph shown in Figure 6.

By convention, the currently active subroutine can only reference the arguments it was passed and its own local automatic and static variables (plus any globally accessible data). For example, while func2 is executing, it can not access func1′s local variables, unless of course func1 passes references to its local variables in the argument list to func2.

Posted in Data Structures with C | Leave a comment

functions file for MDC completed

RCS file: func.c,v
Working file: func.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
MDC functions
—————————-
revision 1.1 locked by: root;
date: 2014/09/17 03:02:24; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

RCS file: main.c,v Working file: main.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: c code to generate master array —————————- revision 1.1 locked by: root; date: 2014/09/16 13:46:55; author: root; state: Exp; Initial revision =============================================================================

Posted in Uncategorized | Leave a comment

Please anybody help for that issue there is a problem when i write a c++ program in qt IGL not found see following picture

Screenshot from 2014-09-11 10:01:17

Posted in Uncategorized | Leave a comment

Getting start with Pointer

RCS file: RCS/basic_pointer.c,v
Working file: basic_pointer.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
basic pointer to under stand
—————————-
revision 1.1
date: 2014/08/29 09:22:19;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/call_by_ref.c,v
Working file: call_by_ref.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
e.g for call by reference
—————————-
revision 1.1
date: 2014/08/29 09:22:19;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/get_ascii.c,v
Working file: get_ascii.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
to get ascii value
—————————-
revision 1.1
date: 2014/08/29 09:20:49;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/p2p.c,v
Working file: p2p.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
pointer 2 pointer
—————————-
revision 1.1    locked by: root;
date: 2014/08/29 09:20:01;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/ptr_incriment.c,v
Working file: ptr_incriment.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
good eg to inc and dec the pointer
—————————-
revision 1.1
date: 2014/08/29 09:23:51;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/ptr_str_match.c,v
Working file: ptr_str_match.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
string match using pointer
—————————-
revision 1.1
date: 2014/08/29 09:23:51;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Data Structures with C | Tagged , , , , | Leave a comment

User defined string header file using pointer

RCS file: RCS/my_string.c,v
Working file: my_string.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
My String Header File
—————————-
revision 1.1
date: 2014/08/27 10:58:21;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Data Structures with C | Tagged , , | Leave a comment

IPC using sockets ( AF_UNIX , SOCK_STREAM )

Server   ————————————————-

RCS file: ./server_socket.c,v
Working file: ./server_socket.c
head: 1.25
branch:
locks: strict
root: 1.25
access list:
symbolic names:
keyword substitution: kv
total revisions: 25; selected revisions: 25
description:
implemented basic program for server.
declared sys/socket.h

—————————-
revision 1.25
date: 2014/08/25 14:38:54; author: root; state: Exp; lines: +0 -1
completed upto only single char received from client.
—————————-
revision 1.24
date: 2014/08/23 03:32:41; author: root; state: Exp; lines: +1 -1
cmpt.
—————————-
revision 1.23
date: 2014/08/23 03:31:33; author: root; state: Exp; lines: +3 -3
completed using domain AF_UNIX & socket type sock_stream.
—————————-
revision 1.22
date: 2014/08/22 08:08:41; author: root; state: Exp; lines: +1 -1
gave signal() for closing fd1 & unlink
—————————-
revision 1.21
date: 2014/08/22 08:06:32; author: root; state: Exp; lines: +12 -3
declared fd1 globaly.
—————————-
revision 1.20
date: 2014/08/22 07:52:03; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2014/08/22 07:12:32; author: root; state: Exp; lines: +18 -15
run server in while(1).
—————————-
revision 1.18
date: 2014/08/22 07:10:42; author: root; state: Exp; lines: +1 -6
made all header files to header.h
—————————-
revision 1.17
date: 2014/08/22 06:30:43; author: root; state: Exp; lines: +3 -1
gave write function for write to socket.
—————————-
revision 1.16
date: 2014/08/22 06:27:33; author: root; state: Exp; lines: +3 -0
gave read function for reading from socket.
—————————-
revision 1.15
date: 2014/08/22 06:18:56; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.14
date: 2014/08/22 06:14:19; author: root; state: Exp; lines: +7 -2
gave accept() call .
—————————-
revision 1.13
date: 2014/08/22 06:09:37; author: root; state: Exp; lines: +2 -2
gave structure obj for aceept
—————————-
revision 1.12
date: 2014/08/22 06:04:54; author: root; state: Exp; lines: +3 -2
changed socket name.
—————————-
revision 1.11
date: 2014/08/22 06:00:32; author: root; state: Exp; lines: +6 -5
changed structure name to struct sockaddr_un.
—————————-
revision 1.10
date: 2014/08/22 03:03:08; author: root; state: Exp; lines: +1 -1
changed socket address.
—————————-
revision 1.9
date: 2014/08/22 02:52:50; author: root; state: Exp; lines: +1 -1
..
—————————-
revision 1.8
date: 2014/08/22 02:44:46; author: root; state: Exp; lines: +1 -1
changed obj of struct sockaddr.
—————————-
revision 1.7
date: 2014/08/22 02:43:51; author: root; state: Exp; lines: +6 -5
..
—————————-
revision 1.6
date: 2014/08/22 02:19:19; author: root; state: Exp; lines: +5 -0
gave sys call listen() to accept incoming connection requests.
—————————-
revision 1.5
date: 2014/08/22 02:15:08; author: root; state: Exp; lines: +5 -4
gave string.h
—————————-
revision 1.4
date: 2014/08/22 02:11:41; author: root; state: Exp; lines: +2 -1
implemented strcpy for assigning name to member sa_data.
—————————-
revision 1.3
date: 2014/08/22 02:09:44; author: root; state: Exp; lines: +8 -0
assigned address to newly created socket using sys call bind().
—————————-
revision 1.2
date: 2014/08/22 02:04:10; author: root; state: Exp; lines: +9 -2
created new socket using sys call socket();
—————————-
revision 1.1
date: 2014/08/22 01:59:23; author: root; state: Exp;
Initial revision
=============================================================================

Client  —————————————————

RCS file: ./client_socket.c,v
Working file: ./client_socket.c
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
implemented basic program for client.

—————————-
revision 1.13
date: 2014/08/25 14:40:41; author: root; state: Exp; lines: +4 -3
completed upto–single char wrote to server_socket
—————————-
revision 1.12
date: 2014/08/23 03:33:35; author: root; state: Exp; lines: +1 -1
completed using AF_UNIX & sock_stream.
—————————-
revision 1.11
date: 2014/08/22 07:13:11; author: root; state: Exp; lines: +1 -6
made all header files to header.h
—————————-
revision 1.10
date: 2014/08/22 06:28:50; author: root; state: Exp; lines: +2 -1
gave read() function for reading from scoket
—————————-
revision 1.9
date: 2014/08/22 06:26:18; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2014/08/22 06:25:40; author: root; state: Exp; lines: +7 -2
gave write() for writing to socket
—————————-
revision 1.7
date: 2014/08/22 06:03:53; author: root; state: Exp; lines: +4 -3
include header file sys/un.h
—————————-
revision 1.6
date: 2014/08/22 02:51:15; author: root; state: Exp; lines: +1 -1
..
—————————-
revision 1.5
date: 2014/08/22 02:50:05; author: root; state: Exp; lines: +3 -3
changed structure name for domain AF_UNIX.
—————————-
revision 1.4
date: 2014/08/22 02:42:00; author: root; state: Exp; lines: +1 -1
..
—————————-
revision 1.3
date: 2014/08/22 02:39:27; author: root; state: Exp; lines: +12 -2
declared struct sockaddr object addr.
implemented syscall connect() for connecting socket reffered by fd to addr specified by addr.
—————————-
revision 1.2
date: 2014/08/22 02:23:30; author: root; state: Exp; lines: +8 -1
created new socket usign socket().
—————————-
revision 1.1
date: 2014/08/22 02:00:11; author: root; state: Exp;
Initial revision
=============================================================================

Header file ————————————————–

RCS file: ./header.h,v
Working file: ./header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
declared structure struct data
—————————-
revision 1.1 locked by: root;
date: 2014/08/25 14:47:43; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

Structure assignment upto 3 question

RCS file: RCS/01_structure.c,v
Working file: 01_structure.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
1st question of structure assignment
—————————-
revision 1.2
date: 2014/09/02 10:08:42;  author: root;  state: Exp;  lines: +8 -7
student data using structure pointer
—————————-
revision 1.1
date: 2014/09/02 09:48:03;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/02_distance.c,v
Working file: 02_distance.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
adding two distance and then convert into meter and cm
—————————-
revision 1.1
date: 2014/09/02 13:51:26;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/03_distance_ptr.c,v
Working file: 03_distance_ptr.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
distance add and conversition unsing pointer
—————————-
revision 1.1
date: 2014/09/02 17:59:29;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Data Structures with C | Tagged , , , | Leave a comment