this is client server socket program. I have to use in C program code. What I have to do.
1. client connect to the server.
2. than client will first prompt a welcome message that asks the user to enter a username using the keyboard. This username will then be sent to the server.
3. than server, after receiving the username from client, it will send an acknowledgment message to the client.
4. client, after receiving the acknowledgment message from server, it will prompt a message that asks the user to enter the corresponding password.
5. This password will then be sent to the server. after receiving the password from client, will verify the received username and password. If the result is positive, the server will send a success message to the client. If the result is negative, the server will send a failure message to the client.
5.client, after receiving the result message, will print out the result and close the socket. server will close the socket following the client, and keep listening for the next client request.
This is the scenario of the program. kindly please help me to solve this program.
Here I can connnect client and server but the rest of work I can not. My code is below.
Client code is
Code:
Last edited by jim mcnamara; 07-28-2010 at 10:51 AM..
Reason: code tags
i thought about to use the commands : wc and sort cut and mybe more ..
i need to write a bash script that recive a list of varuables
kaka pele ronaldo beckham zidane messi rivaldo gerrard platini
i need the program to print the longest word of the list.
word in the output appears on a... (0 Replies)
this is client server socket program. I have to use in C program code. What I have to do.
1. client connect to the server.
2. than client will first prompt a welcome message that asks the user to enter a username using the keyboard. This username will then be sent to the server.
3. than... (1 Reply)
I have to find the files older than 200 days from a path and copy them to some other directory with the current date stamp attached to it.
i have written like follows:
#!/bin/ksh
DSTAMP=$(date +"%y%m%d%H%M")
rm $CA_OUT_PATH/ftp_logs/temp
touch $CA_OUT_PATH/ftp_logs/temp
chmod 777... (13 Replies)
I have to find the files older than 200 days from a path and copy them to some other directory with the current date stamp attached to it.
i have written like follows:
#!/bin/ksh
DSTAMP=$(date +"%y%m%d%H%M")
rm $CA_OUT_PATH/ftp_logs/temp
touch $CA_OUT_PATH/ftp_logs/temp
chmod 777... (1 Reply)
I have to find the files older than 200 days from a path and copy them to some other directory with the current date stamp attached to it.
i have written like follows:
#!/bin/ksh
DSTAMP=$(date +"%y%m%d%H%M")
rm $CA_OUT_PATH/ftp_logs/temp
touch $CA_OUT_PATH/ftp_logs/temp
chmod 777... (1 Reply)
Hello experts,
Here is my code.I can create the database.But I also want it to see standard output.Please see the blocked code.If i use them they show me weired symbols.
#include <stdio.h>
#include <stdlib.h>
struct date {
int month;
int day;
int year;
};
struct empRec{... (14 Replies)
I have the below fixed file ..... and the sample code to convert csv ...last week it was working good ....to day i face error ....can you solve ...
Note : Iam passing ending positions as variables .... 4 ,5,15 etc....
source.txt :
E116015/29/19930E001E000
E122012/23/19940E001E003... (3 Replies)
I have to write an script for..
CUST: 123 trans:
some contents
CUST: 1234 trans:
some contents
Now wat i have to do is this:
CUST:123 akash trans:
some contents
CUST:1234 akash1 trans:
I have been able to add... (3 Replies)