Results for "Category: Internet/ Browsers/ HTML"
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.)
This example sets up a Server using TServerSock to respond and handel incomming Telnet connections. It can easily be modified into a UserAccount based RemoteAccess system for example. Try it out, a lot of time has been put into this code so it should be almost perfect!
Reformats URLS for a search engine friendly format (ie look like HTML pages) back into asp querystrings for the ASP pages to use normally.
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
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.
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
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
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.
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.
This POP3 Email Client is a bare bone for making your own full-blown POP3 Email Software! This commented code will teach you how to communicate with POP3 email servers from around the world. The functionality of this program include taking in the host name, user name, and password as parameters and connecting to a POP3 server, if the POP3 server contains mail, it will display the first email in the text box, a great start to a C++ email program! This program demostrates a practical usage for Windows Winsock, and it's all coded in memory-saving Windows API, with no usage of MFC! If you like this, please vote for me :)
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!
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.
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.
hi all! this is a program that will create a HTML Gallery (thumbnails of pictures with links to original ones) with images you give to it and a template (Which is it's greatest feature, i haven't seen any program having this feature) so the result is COMPLETLY customizable. using free JPEGLIB to read and write JPGs & GIFs and my own code to read BMPs. it's good for you to learn how to read and write TEXT files and fill in any place of it. a template is included in the \TEMPL directory for you to learn it! it's very easy to use and fast!
MasterX Console FTP. This will show you how to program MasterX Console programs and FTP API at the same time!!!
Retrieve the default site of a website via API32 and Winsock 2.0. Also included a simple Always On Top demonstration. No MFC so far.
This code's aim is to run on a server which connects to multiple servers, and sends and receives data. It is meant to do it fast. I do not know if this is the fastest or best way to do the code. I'm not a highly experienced winsock coder. But I made sure to have the code as clean as possible and as bug free as possible. If you find any problems or have comments. Please I would like to know. Even if it's a method on doing it faster. Check the header file for documentation. On Each function. As shown in the example, you need to call the InitWinsock member function on the class, when your application enters. And DeInitWinsock when it exits. But not for each instance of the class though. I wonder if this is a good reason to make it static :) (Will change that some time) New Changes (13 December 2001) ->Fixed a bug in resolving host names. It will -now resolve them properly. -> Changed dome functionality to make text transfers easier -> Changed this code experience thingy to Advanced. If it shows my experience :) Also: Anyone know of somethign cool I could wright for win32 ?
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!
Do some tasks with the internet utilizing WinInet. Download documents and view html of pages. Extremely well commented.
This code shows the source ip and port the flags of the packet and the sequence number