Advertisement

Results for "Category: Internet/ Browsers/ HTML"

2002ASP #7474
SChat verson 0.50

The purpose of this application is to provide a direct communication between 2 computers in a peer to peer like environment. This code should be a great start for people who want to build a full blown chat program using C/C++ and Winsock. This application has been tested and compiles under Windows 98, Windows NT/2000, and Linux. I hope by releasing this source code that other people who want to learn C/C++ networking using Winsock can pick it right up and learn from my program. I know I had a fairly hard time finding example apps to learn from. Gotta give back! :)

2002ASP #7482
A Very Simple COM Server and Client in MS VC++ 6.0 without using MFC,ATL or IDL.

A Very Simple COM Server and Client in MSVC++ 6.0 without using MFC,ATL or IDL. This very simple com server is something I had been looking for to help me understand the insides of the "black box" that is COM as presented in MFC and ATL. As a developer learning COM, I was unable to find an extremely simple, clear implementation of COM without having to also deal with ATL, MFC or the IDL (not that they are difficult to understand, but just additional overhead). I hope this will be useful to others who want to understand some of the insides not usually seen when using the AppWizards. The Server is implemented as an empty win32 simple dll project with no original files or text created by Visual Studio, other than the Stdafx.h and Stdafx.cpp files. The client was created as an empty simple win32 console application, including no generated code from Visual Studio. The Globally Unique Identifiers were created using Guidgen.exe included with Visual Studio. After downloading the code, unzip and open the file Pig.dsw in MS Visual C++. Both Pig and Pig Client should open. Compile Pig first, then register the dll using regsvr32.exe. (inside the directory containing Pig.dll, run regsvr32 using the command "regsvr32 Pig.dll"). After successful registration, compile and run PigClient. You should get a messagebox indicating the server was accessed successfully. Albert

2002ASP #7492
Networking

This is a collection of functions that will make it easy to connect and disconnect from remote computers as well as sending and receiving data. Worth a look, i think =D  Important: Be sure to link your code with wsock32.lib and mpr.lib (already done in the sample) !! The sample shows you how to connect and listen for connections, send and receive data, and how to retrieve all computers connected to the LAN. For an online documentation visit http://code.jakobbieling.de/. Have fun (PS: I recommend using the new CNetworking. Browse through my other submissions to find it.)

2002ASP #7502
Simple Hit Counter

This is a simple hitcounter written in c that writes the number of page hits to a file then displays the number as .Gif's (Gif's Included) SSI required to use. Exapmle Included

2002ASP #7573
Telnet Client By Ibrar Ahmad

Introduction This is a telnet console application that implements the Telnet client protocol (rfc854.) I have run it on VC6, NT4.0 SP3 Telnet The purpose of the TELNET Protocol is to provide a fairly general, bi-directional, eight-bit byte oriented communications facility. Its primary goal is to allow a standard method of interfacing terminal devices and terminal-oriented processes to each other. It is envisioned that the protocol may also be used for terminal-terminal communication ("linking") and process-process communication (distributed computation). General Considerations A TELNET connection is a Transmission Control Protocol (TCP) connection used to transmit data with interspersed TELNET control information. The TELNET Protocol is built upon three main ideas: first, the concept of a "Network Virtual Terminal"; second, the principle of negotiated options; and third, a symmetric view of terminals and processes. When a TELNET connection is first established, each end is assumed to originate and terminate at a "Network Virtual Terminal", or NVT. An NVT is an imaginary device, which provides a standard, network-wide, intermediate representation of a canonical terminal. This eliminates the need for "server" and "user" hosts to keep information about the characteristics of each other's terminals and terminal handling conventions. All hosts, both user and server, map their local device characteristics and conventions so as to appear to be dealing with an NVT over the network, and each can assume a similar mapping by the other party. The NVT is intended to strike a balance between being overly restricted (not providing hosts a rich enough vocabulary for mapping into their local character sets), and being overly inclusive (penalizing users with modest terminals). This Project has five Main Classes CSocketDx CSocketDx Class is used to establish TCP connection. It has 3 functions CSocketDx(char *,int); ~CSocketDx(); int Create(); int Connect(); SOCKET TelnetConnect(); CSocketRx CSocketRx Class is used to Receive data. It has only one thread. CSocketRx(); CSocketRx(SOCKET,HANDLE&); virtual ~CSocketRx(); static DWORD RdTh(CSocketRx *); CSocketTx CSocketTx Class is used to Send data. It has only one thread. CSocketTx(SOCKET,HANDLE&); virtual ~CSocketTx(); static DWORD SendTh(CSocketTx*); CProtocolRx CProtocolRx Class is used Implement Telnet protocol. inline void yesreply(SOCKET server, _verb verb,_option option); inline void noreply(SOCKET server, _verb verb,_option option); inline void askfor(SOCKET server, _verb verb,_option option); void TelentProtcol(SOCKET server,unsigned char code); Platforms I have run it on VC6, NT4.0 SP3; I did not test it on 95 and VC5 Limitations Cannot handle arrow keys

2002ASP #7584
Using C++ for CGI work.

This isn't much, but it shows you how to use C++ to make CGI programs. NOTE: Please read "Explanations/Assumptions" for instructions on how to use this.

2002ASP #7621
MasterSocket

MasterSocket is a class which encapsulates connecting, and listening with a socket. It also keeps a hold of the sockets id, automaticly initilizes winsock, and destroys winsock. Its good if you dont know how to use winsock.h, since it makes it a whole lot easyier.

2002ASP #7622
MasterSocket Example Package (2 Programs)

These are the examples on how you can use MasterSocket. There are two examples, the first shows how to setup the socket to listen, and the second program sets up a socket to connect. So basicly open up both of them, and connect. The First will display the data coming in, and the second will pass it the data. It shows how you can use the MasterSocket class to connect and pass data back and forth. Fully commented.

2002ASP #7644
Office Web Chart

This code will create an Office web chart from the data supplied from a database. It will then create a gif file and place it on a web page.

2002ASP #7650
Calendar Date Picker

A calendar date picker which allow easy input for date in textbox. Only works in IE4 & above. IE6 supported. The current supported date format is mm/dd/yyyy. Make sure the path for the file calendar.js and datev2.htm is set properly.

2002ASP #7717
MasterX Console FTP

MasterX Console FTP. This will show you how to program MasterX Console programs and FTP API at the same time!!!

2002ASP #7738
timeme.c

This code is to teach a small bit of socket programming. It connects to a simple time server and reads the time and prints to the screen. Easy to read code. Please vote. Also check out my other submissions and vote for those too!

2002ASP #7791
HTTP/Web Server Source

This is the source code for a web server. It isn't quite finished, and at the moment I haven't got time to finish it (I start my GCSE exams in 2 weeks) so I thought it might be of benefit to people who want to write one. The server runs in the system tray and supports the resume feature (which some servers such as Xitami don't). At present, the server doesn't save the settings you type in, so you'll have to reset them every time you run it. But anybody with a good knowlage of file I/O should be able to add this. Please Please rate this server, your comments would be appreciated, though I won't be working on the project again until the end of June. If you want to make any changes, please contact me first, and please don't use the code in a commercial product. To get it working, put your pages/files in the 'root' directory which should be in the same directory as the executable. If you like it PLEASE PLEASE PLEASE vote.

2002ASP #7798
Webserver Logfile Analyzer

I wrote this quick bit of code after looking at the cost of a product from the leader in the analysis of logfiles. - I'm a website operator and I have my sites hosted, and as such, the little things, like bandwidth usage, become rather important. Free Online Service type methods for tracking website usage cant provide bandwidth reports because a website is more then just html files. This program will go through a logfile of a specified format and add up the total bandwidth from server to client.

2002ASP #7876
Telnet Chat Server

An example of how to use winsock sockets (tcp/ip connection) to create a simple console based chat program.

2002ASP #7886
PC CLOCK SYNCHRONIZING USING HTTP PROTOCOL

This article describes using Windows Internet API for atomic clock sites connection and synchronization PC clock. C++ code is included.

2002ASP #7902
Multithreaded/Multisession TCP server

A sample on how to create a simple TCP server that is Multi Threaded and accepts more then one Client Connect in MFC using SOCKS.

2002ASP #7911
FTP WININET Win32

Simple FTP DOS/WIN32 application that checks the machine day of the week, then goes and downloads the appropriate file for that day. I warn you, I stink at C/C++ and other languages and have only toyed with simple stuff. First, let me say this. I am a Network Engineer, MCSE, CNE, CCNA and work with routers, servers, Novell/NT some database apps/servers, firewalls, security, yada yada.. I wanted to learn C/C++ to be able to read, and understand hopefully, security applications, exploits etc...since I have taken more of an interest in security lately. Of course, in my day-to-day activities, something always comes up that requires me to make a task transparent to the end-users. It seems nobody can start an FTP from a Windows command prompt, login and download a file without it becoming a major ordeal, so they scream to the Information Technology department and make it our job (sound familiar?). So, this is what really prompted me to write something useful in C++. There are probably better ways to handle the checking of the day and firing up your Internet FTP session other than the way I did it, any comments are greatly appreciated on how to streamline this code. First, finding information on search engines/news groups and even MSDN is very difficult. Documentation to a novice is very cryptic, especially when there is very little of it to begin with on Microsoft's site. I had a heck of a time actually getting the simple FTP connection to work and scramble for days working on it. Hopefully, this will make it very apparent on how to get started with WININET to make FTP connections and lead you to bigger and better things. Please comment on the code.

2002ASP #8007
Download a file from the Internet reliably

In this article you will find out why you just can't call a few WinInet functions and expect them to download a file for you. You will learn the proper way to download a file from the Internet, and display its progress and download speed!

2002ASP #8019
Packet sniffer

This code shows the source ip and port the flags of the packet and the sequence number

Languages
Top Categories
Global Discovery