EmbLogic's Blog

Category Archives: Project 04: FTP based Client Server using Threads and Sockets

The POSIX thread libraries are a standards based thread API for C/C++. It allows one to spawn a new concurrent process flow. It is most effective on multi-processor or multi-core systems where the process flow can be scheduled to run on another processor thus gaining speed through parallel or distributed processing. Threads require less overhead than “forking” or spawning a new process because the system does not initialize a new system virtual memory space and environment for the process. While most effective on a multiprocessor system, gains are also found on uniprocessor systems which exploit latency in I/O and other system functions which may halt process execution. Parallel programming technologies such as MPI and PVM are used in a distributed computing environment while threads are limited to a single computer system. All threads within a process share the same address space. A thread is spawned by defining a function and its arguments which will be processed in the thread. The purpose of using the POSIX thread library in your software is to execute software faster.
Sockets are the fundamental technology for programming software to communicate on TCP/IP networks. A socket provides a bidirectional communication endpoint for sending and receiving data with another socket. Socket connections normally run between two different computers on a LAN or across the Internet, but they can also be used for interprocess communication on a single computer.

Client Server comm. using threads & Sockects

Just like Pipes, Sockets are used for communication but within the processes of two different devices/computers. A socket is used for reading/writing operations at one end and has the network interface at other end. Below is the RCS logfile of … Continue reading

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

Socket programming based Home Automation

The main aim of this project is to implement Socket programming using Embedded linux based boards using beagle bone as server and pc as a client. The entire electrical system like home appliances are interfaced to Server (Beagle bone black) … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Project 04: FTP based Client Server using Threads and Sockets, Project 6: Client Server using Inter Process Communication Mechanism, Project 9: Embedded Linux on ARM | Tagged , , , | Leave a comment

client-server program using AF_UNIX

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: This is the base header file for the Project —————————- revision 1.1 locked … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

Basic_program of socket

server_program int main() 9 { 10 int s_sockfd,c_sockfd; 11 int c_len,s_len,s_result; 12 struct sockaddr_un s_address; 13 struct sockaddr_un c_address; 14 unlink(“emblogic”); 15 s_sockfd = socket(AF_UNIX,SOCK_STREAM,0); 16 printf(“Print the s_sockfd %d\n”,s_sockfd); 17 if(s_sockfd == -1) 18 { 19 perror(“Error due to … Continue reading

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

Sockets – Basics

Sockets ======= A socket is a communication mechanism that allows client/server systems to be developed either locally,on a single machine, or across networks. – It is a communication mechanism – It allows client/server systems to developed either locally or across … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged , , , , | 2 Comments

Estblished full duplex communication between client and server using socket with domain AF_INET

RCS file: client.c,v Working file: client.c head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: Thie is the base file for client for full duplex communication between client … Continue reading

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

Estblished Half duplex communication between client and server using socket with domain AF_INET

RCS file: client.c,v Working file: client.c head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: Thie is the base file for client for half duplex communication between client … Continue reading

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

Successfully implemented Simplex communication between client and server using sockets with domain AF_UNIX.

RCS file: server.c,v Working file: server.c head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: This is the base file for server for client-server communication using sockets. —————————- … Continue reading

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

socket using AF_INET

RCS file: server_inet.c,v Working file: server_inet.c head: 1.8 branch: locks: strict root: 1.8 access list: symbolic names: keyword substitution: kv total revisions: 8; selected revisions: 8 description: this the file for srver —————————- revision 1.8 locked by: root; date: 2015/04/11 … Continue reading

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

socket using AF_UNIX

head 1.6; access; symbols; locks ashish:1.6; strict; comment @ * @; 1.6 date 2015.03.29.13.01.22; author ashish; state Exp; branches; next 1.5; 1.5 date 2015.03.29.12.57.43; author ashish; state Exp; branches; next 1.4; 1.4 date 2015.03.29.12.56.00; author ashish; state Exp; branches; next … Continue reading

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

IPC based server-client project using a multithreaded server(test with more than 140000 requests at a time)

RCS file: server.c,v Working file: server.c head: 1.48 branch: locks: strict root: 1.48 access list: symbolic names: keyword substitution: kv total revisions: 48; selected revisions: 48 description: server code scp project —————————- revision 1.48 locked by: root; date: 2014/11/21 06:10:31; … Continue reading

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

Basic implementation of Treads

RCS file: ./1_basicimpof_creat_join_exit.c,v Working file: ./1_basicimpof_creat_join_exit.c head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: Basic implementation of threads —————————- revision 1.2 locked by: root; date: 2014/11/22 04:45:10; … Continue reading

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

Chat box implementation by socket(loop back)

RCS file: ./ser_socket.c,v Working file: ./ser_socket.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: Chat box implementation by socket using loopback implement socket,listen,accept system call to get … Continue reading

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

Communication between client and server through socket with Domain-AF_INET

RCS file: RCS/server.c,v Working file: server.c head: 1.6 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 6;    selected revisions: 6 description: main server file Include socket.h and types.h —————————- revision 1.6 date: 2014/11/06 05:25:09;  author: root;  … Continue reading

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

communication between client and server(Both on different system) through socket with Domain-AF_INET

RCS file: RCS/server.c,v Working file: server.c head: 1.6 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 6;    selected revisions: 6 description: main server file Include socket.h and types.h —————————- revision 1.6 date: 2014/11/06 05:25:09;  author: root;  … Continue reading

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