Click here to Skip to main content
15,898,596 members
Home / Discussions / C#
   

C#

 
QuestionLine number and filenames? Pin
Brian R1-Feb-06 5:18
Brian R1-Feb-06 5:18 
AnswerRe: Line number and filenames? Pin
leppie1-Feb-06 11:50
leppie1-Feb-06 11:50 
QuestionHow can i hit the lines in Compact Framework? Pin
pmasknguyen1-Feb-06 5:05
pmasknguyen1-Feb-06 5:05 
JokeI'm beginner in C# and need a help Pin
Dr.Sammer1-Feb-06 5:04
Dr.Sammer1-Feb-06 5:04 
GeneralRe: I'm beginner in C# and need a help Pin
Dan Neely1-Feb-06 5:35
Dan Neely1-Feb-06 5:35 
GeneralRe: I'm beginner in C# and need a help Pin
James Gupta1-Feb-06 7:09
professionalJames Gupta1-Feb-06 7:09 
GeneralRe: I'm beginner in C# and need a help Pin
Dr.Sammer1-Feb-06 16:48
Dr.Sammer1-Feb-06 16:48 
QuestionHelp on FTP client server socket prog Pin
satya01-Feb-06 4:57
satya01-Feb-06 4:57 
Write a simple FTP (File Transfer Protocol) server and client using the TCP socket libraries on
Unix. This simple FTP application only implements the command “GET” to retrieve a file and
the command “LIST” to request a list of all the files the server offers. The example client and
server codes studied in class show how to use command line parameters and the use of the
socket libraries for a simple stateful server that returns a message to the client that tells the
number of times it has been accessed. The specifications for your client and server are as
follows:
===========================================
Client specification:
Your client should accept as parameters from the command line the name of the host on which
the server runs and the corresponding port number. Both arguments are optional. If no host
name is specified, the client uses "localhost"; if no protocol port is specified, the client uses a
default one given by PROTOPORT.
The client should do the following:
· Prompt the user to enter one of the following two commands:
o GET filename to retrieve the given file
o LIST to get a list of all files the server offers
· Connect to the server and request service by sending the user’s request.
· The client should then simply display the information sent back by the server on the screen.
· The requested file should be written into a file of the same name. If the file already exists, prompt the user to enter a new name.
· Close connection with server when done.
-----------------------------------------------------------------------------------
Server specification:
The server takes a single commandline argument that specifies the port number the server is
using, i.e. server 5555 . If no protocol port is specified, the client uses a default one given by
PROTOPORT. Have the server export a set of files from the computer on which it runs (i.e.
make them availabla for download). The server should:
· Read the request message from the client.
· Process the request (either GET or LIST):
o If the request is GET filename, then retrieve the file and send it to the
client.
o If the request is LIST, then get the list of all files available for download.
· On errors, send an error message back to the client such as:
o Not a command or command not implemented
o File does not exist
o Incorrect command format

Satyaranjan Sahu
AnswerRe: Help on FTP client server socket prog Pin
Tom Wright1-Feb-06 5:05
Tom Wright1-Feb-06 5:05 
GeneralRe: Help on FTP client server socket prog Pin
satya01-Feb-06 5:10
satya01-Feb-06 5:10 
GeneralRe: Help on FTP client server socket prog Pin
Dan Neely1-Feb-06 5:36
Dan Neely1-Feb-06 5:36 
AnswerRe: Help on FTP client server socket prog Pin
Ravi Bhavnani1-Feb-06 6:25
professionalRavi Bhavnani1-Feb-06 6:25 
Question[Message Deleted] Pin
somebody_tr1-Feb-06 4:48
somebody_tr1-Feb-06 4:48 
AnswerRe: Who Will Answer it? Pin
Ingo1-Feb-06 21:43
Ingo1-Feb-06 21:43 
QuestionProper usage of SqlCommand Pin
MrEyes1-Feb-06 4:48
MrEyes1-Feb-06 4:48 
AnswerRe: Proper usage of SqlCommand Pin
ToddHileHoffer1-Feb-06 5:17
ToddHileHoffer1-Feb-06 5:17 
GeneralRe: Proper usage of SqlCommand Pin
Colin Angus Mackay1-Feb-06 5:52
Colin Angus Mackay1-Feb-06 5:52 
GeneralRe: Proper usage of SqlCommand Pin
ToddHileHoffer1-Feb-06 6:33
ToddHileHoffer1-Feb-06 6:33 
QuestionHaving a problem with this byte array Pin
Tom Wright1-Feb-06 4:40
Tom Wright1-Feb-06 4:40 
AnswerRe: Having a problem with this byte array Pin
Guffa1-Feb-06 6:50
Guffa1-Feb-06 6:50 
GeneralRe: Having a problem with this byte array Pin
Tom Wright1-Feb-06 8:59
Tom Wright1-Feb-06 8:59 
GeneralRe: Having a problem with this byte array Pin
S. Senthil Kumar1-Feb-06 18:52
S. Senthil Kumar1-Feb-06 18:52 
GeneralRe: Having a problem with this byte array Pin
Tom Wright2-Feb-06 4:20
Tom Wright2-Feb-06 4:20 
QuestionGUI Invokation problem Pin
rnvrnv1-Feb-06 4:38
rnvrnv1-Feb-06 4:38 
AnswerRe: GUI Invokation problem Pin
Tom Wright1-Feb-06 5:02
Tom Wright1-Feb-06 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.