This document presents a railway reservation system using socket programming in C language. It aims to provide a faster and more efficient reservation process where users can book tickets without filling forms. The system allows users to book, cancel, and view ticket details. It is implemented using socket programming to improve reliability and extensibility. The system manages railway operations, fares, and timetables through a client-server model connected to a database. The objectives are to view train schedules and routes, implement a chat server, view seat availability, and view ticket statuses. It uses file handling to store data and sockets for communication between the server and clients.
Heart Disease Prediction using machine learning.pptx
Railways reservation system using socket programming
1. RAILWAY RESERVATION SYSTEM USING
SOCKET PROGRAMMING IN ‘C’
PRESENTED BY
UJJWAL MAHAJAN UTKARSH SHARMA RISHABH AGRAWAL SANYAM GARG
500041345 500041161 500041139 500040778
2. ABSTRACT
Railway reservation must be faster and efficient.
Using this program, users can book a ticket without
filling a form at the railway reservation counter.
Users can directly choose from the option provided
such as book a ticket, cancel a ticket, etc.
If a user selects to book a ticket, ticket would be
booked and final amount would be displayed on the
screen.
Implemented through socket programming in C
language.
3. INTRODUCTION
The Project “Railway Reservation System” aims to
provide a mechanism for the railway management to
deal with a number of tasks efficiently using this
system.
There are three basic tasks under this system which
are:
RAILWAY MANAGEMENT
FARE MANAGEMENT
TIMETABLE MANAGEMENT
4. PROBLEM STATEMENT
The existing railway reservation system has many
shortcoming associated with it.
In the existing system, railways used to set train
reservation levels higher than seating capacity to
compensate for passenger cancellation thus wasting
time and money for all. With the advent of this
project these flaws can be overcome.
The use of Socket programming is going to do extend
the reliability & extensibility of the railway and will
also improve the user comfort.
5. LITERATURE REVIEW
This project is mainly about railway reservation system using
socket programming.
Sockets allow communication between two different
processes on the same or different machines. To be more
precise, it's a way to talk to other computers [3].
There are many types of sockets mainly- Datagram sockets,
also known as connectionless sockets, which use User
Datagram Protocol (UDP); Stream sockets, also known
as connection-oriented sockets, which use Transmission
Control Protocol (TCP) or Stream Control Transmission
Protocol (SCTP); Raw sockets, which are typically available in
routers and other network equipment- here the transport
layer is bypassed, and the packet headers are made
accessible to the application [1].
Socket programming is basically programming of sockets
which uses some functions, such as, listen(), accept(), etc.,
to communicate b/w clients and server. [2].
6. OBJECTIVES
To view trains between stations.
To implement a chat server.
To view seats available.
To view status or PNR.
To view train route.
7. METHODOLOGY
File handling is used for storing database.
A chat server linked with the database and clients
for requesting the chat server are also created for
reservation or cancellation.
If any seat is available for reservation, it would
respond on the request else would display a
message for waiting.
Basically, two kind of user are available.
TEMPORARY USER.
PERMANENT USER.
8. SYSTEM REQUIREMENTS
SOFTWARE REQUIREMENTS:
Operating system Linux.
Programming Language C language.
Compiler. gcc Compiler
HARDWARE REQUIREMENTS:
RAM 512 MB
Hard Disk 5 GB
9. SCHEDULE: (PERT CHART)
Coding and Testing
(4 weeks in November)
Software Requirement
Analysis & Research
(3weeks of
September)
Implementation
(2 weeks)
Finish
Data Analysis
&
Learning
(last week of August)
3
1
5
6
3
2
Algorithm design
(4 weeks of
October)
4
Start
Figure 1: PERT Chart of Railway Reservation System
10. SCHEDULE OF PERT CHART
NAME TIME
Requirement analysis Last week of August
Design 3 weeks of September
Coding 3 weeks
Testing 4 weeks in November
11. REFERENCES
Web Resources:
www.indianrail.gov.in
www.irctc.gov.in
www.scribd.com
Reference Books:
“TCP/IP Sockets in C” by Michael J. Donahoo, Kenneth L.
Calvert.
“The pocket guide to TCP/IP Sockets” by Kenneth L. Calvert.