 |
|
 |
hi,
i am wondering if i can transform the client to send file every time i
call the function ... i just don't understand how the rec works, I've tried
to change something but it sais that it's corrupt
thanks for helping,
anyway it's a great code! Good job
P.s
I'm a beginner
|
|
|
|
 |
|
 |
were you able to solve the problem?
rgds
h
|
|
|
|
 |
|
 |
hi,
i hate to put up such a basic question, but i am getting errors like:
error LNK2001: unresolved external symbol __imp__socket@12
i have added ws2_32 in object/library modules.
Please help
thanx
|
|
|
|
 |
|
 |
I no longer watch this project activities. I am happy that many are using my project as a beginning tool for understanding winsock.
There can be some problems in it, because I have not gone into much details, but this can be used as start work, and many more checks and cross checks can be implemented.
Other than runtime problems, I am eager to know about any logical issue that may exist in details so that I can work on it to improve on that part.
Thanks in advance.
|
|
|
|
 |
|
 |
I can see why you don’t spend time here any longer with the way some people treated you. Thanks for posting and thanks for contributing; much appreciated.
|
|
|
|
 |
|
 |
Hello,
Thank you for posting the article, it is useful to see the most simple possible implementation of WInSOck. However, having created a project as you suggest to test the code, I find all file transfers are resulting in corrupted files. In other words, I instantiated a client which sends a text file as a test, and the server receives it but saves a file with corrupt contents.
Have you any suggestions why this is occurring? Have you checked your own code for this flaw?
Regards.
http://zenben.net/
|
|
|
|
 |
|
 |
I got two errors when I compile,
error C3861: 'atoi': identifier not found
error C3861: 'itoa': identifier not found
But when I hover my cursor on the function atoi(rec); it does show int atoi(const char *) and also for itoa. I am using Visual Studio 2005 Professional. Please help. Thank you.
The above already solve, after I include the stdlib.h, but now it shows new error of 1>LINK : fatal error LNK1104: cannot open file 'msvcirtd.lib'
Please help, I got one more of this error to go in order to compile successfully (hopefully) Thank you
-- modified at 14:48 Friday 20th April, 2007
|
|
|
|
 |
|
 |
these r my projct requirements:
Lightweight portable framework application which can stream files over a network. Henceforth will be called the "FILE-PROBE"
1. FILE-PROBE must be able to stream the contents of a given file to a destination over a configured port
or using the syslog protocol. As file grows, new lines must be pushed to the destination.
2. Name of the file to be transferred, destination etc, must be configurable via an XML configuration file.
XML configuration file itself must be uploaded to the FILE-PROBE via a control port,
using some simple authentication mechanism.
3. A source filter must be configurable via an XML configuration file.
XML filter configuration file itself must be uploaded to the FILE-PROBE via a control port,
using some simple authentication mechanism.
4. Binary update the the FILE-PROBE must be configurable able to be sent via the same control port.
5. FILE-PROBE must be able to monitor multiple files.
Must be able to handle events such as file suddenly being truncated, file renamed, file deleted etc.
Reciever:
Use the syslog mechanism to receive the files.
- Write different syslog config files/templates so that received streams can be directed to different locations.
OR
Write a home-grown reciever application.
1. Application must receive streamed data from different file recievers and log them to files.
2. Ability to filter data on the reciever side using an XML configuration file.
pllllzzzzz help me wid my proj
|
|
|
|
 |
|
 |
how can i use this in MFC .. a tutorial plz?? having several link issues
|
|
|
|
 |
|
 |
Thanks for the code !!!
DJ
|
|
|
|
 |
|
 |
it works thanx mate hard to work out a bit but a good post none the less.
|
|
|
|
 |
|
 |
Hi all,
I have converted the code to a static library (*.lib). I have added the library to the input options for the linker. I have also included the wcomm.h file in my project. However, the compiler is unable to find the WComm class. I have tried declaring the variable as extern but with no success. I am using Visual c++ v6.
One thing is that the program where I am using the library has a using namespace std; statement. Could this be the problem?
Pranav
|
|
|
|
 |
|
 |
Hi,
Please see that ws2_32.lib is also added to the project.
using namespace std; statement is not a problem.
You can take the latest source. This has workspace contains:-
1. A standalone console app contining everything.
2. A WComm Lib.
2. An application using WComm Lib.
|
|
|
|
 |
|
 |
Hi,
Many thanks. This is just what I needed. I also appreciate you actively tracking the article.
|
|
|
|
 |
|
 |
i liked it very much ...simple ....yet effective
|
|
|
|
 |
|
 |
You really are a moron, reposting the same article to remove the criticisms from the last time, you should be banned.
|
|
|
|
 |
|
 |
I appologise - it's not the same article, just a virtually identical copy !
What made you want to write software ? Do you think you are impressing people with this rubbish ?
-- modified at 4:49 Tuesday 4th April, 2006
|
|
|
|
 |
|
 |
Hi,
I have completed this file transfer later, otherwise, why should i not include it in my previous project.
And I only hope it will be usefull for many beginners like me.
|
|
|
|
 |
|
 |
Hi kbfromindia,
You just need to add a bit more detail to your articles, explaining things like why you wrote it, what problems you came up against and how you fixed them, etc.
regards,
|
|
|
|
 |
|
 |
Darka,
the articles existence was explained in the opening paragraph.
It has to be portable, simple, not reliant on any framework, and compilable with gcc.
'nuff said.
It ain't the greatest code that came down the pike, but, it does do what the author says it does, and it works, and it sure is simple.
-y
|
|
|
|
 |
|
 |
Hi yafan,
What's that got to do with writing a crappy article ?
|
|
|
|
 |
|
 |
admittedly, nothing.
The article is crap.
|
|
|
|
 |
|
 |
Hmmm... Reverse psychology! Kind of makes you say "Who's the real moron here?"
I think it's really the code that matters and what you say it does, not how you say it. In my opinion, the article is crap (read: not in very great shape). But the example it focuses on does exactly what the article says it does. Stuff like flourishing or embellishing is for professional writers, not for programmers. We write code.
They say the same thing about people: It's how they are inside that matters... or something like that. So' it's really the code that matters, although I would have focused a little bit more on one thing (something that I'm not really good at either): error checking.
Anyways, keep up the good work... Who cares what all the "morons" think? Real programmers are made of code!
No pun intended with my previous remark. If we all have to be in the same pot, at least we can try to get along, and there's something about calling someone a moron that just isn't right.
Cheers,
Gabriel
|
|
|
|
 |
|
 |
Agreed.
Sorry, sk8er_boy287. I mistakenly clicked the lowest vote for your post
|
|
|
|
 |