I have a a big issue. I bridged from another university and C programming was not one of my requirements for bridging.... until now. I have a class that is going to use c heavily and I am getting pretty beat up and frustrated. No sob stories though since I had an inkling that c might be dependent so I started learning c in all of my spare moments.
I know Java alright, particularly with Eclipse Products, and i know PHP fairly well also. I've spent probably close to about 20 hours smacking my head against the wall and would love to have a c god lend some advice/discussion.
I'll upload what I have so far, and I DON'T WANT anyone to give me the answer.. in fact I would rather learn it with well advised discussion.. I would pay for tutoring as well if needs be.
The fileclient.c was really where I was working, but it breaks horrendously on compile.. I was trying to figure out structures etc..
Here is an excerpt on what I was trying to do:
Objective: To implement a simple client-server using the TCP/IP protocol suite.
· Design and implement a server application that will listen for connections from
clients and once the connection has been established it will respond to file transfer
commands from the client(s).
· Design and implement a client application that will initiate a connection to a remote
server, and will issue commands to the server to either send a file or to receive a file.
· Supply the server information as command line arguments.
· Implement two functions: GET and SEND in your application.
· That is, a client can use the GET function to request a named file from a server.
· Similarly it can use SEND to send a specified file to a remote server.
· The server will be designed to handle connections from multiple clients, i.e., a
· The server will listen on port 7001 for connection requests. The client will connect to
the control port on the server using a dynamic port (port X).
· When a GET or SEND command is received by the server, the server will initiate a
data connection from port 7000 to port X on the client machine.
Cheers - Hope to hear something soon.