Skip to main content

Posts

Showing posts from June, 2012

Apache vs IIS

Apache IIS Portable Configuration Yes text/file Yes (Import & Export ) binary Operating Systems Supported Cross-platform (Windows, Mac OS X, Linux, BSD, Solais, eCS, OpenVMS, AIX, z/OS) Windows License Apache License 2.0 Proprietary Cost Free Bundled with Windows NT family products Basic access authentication Yes Yes Digest access authentication Yes Yes HTTPS Support Yes Yes Virtual Hosting Yes Yes CGI Support Yes Yes FastCGI Support Yes Yes Servlets No No SSI Support Yes Yes Asp.Net Support Yes (via “mod_aspdotnet” module) Yes Runs in user or kernel space User Space Kernel or user space Administration Console Yes Yes IPv6 Yes

Differences between TCP and UDP

TCP UDP Full Form Transmission Control Protocol User Datagram Protocol Function Connection based protocol which is used to transport message across the internet from one computer to another Non-Connection based protocol used in message transport or transfer Working TCP connection is established via a three way handshake, which is a process of initiating and acknowledging a connection. UDP uses a simple transmission model without implicit handshaking dialogues for guaranteeing reliability, ordering, or data integrity Example HTTP, HTTPS, FTP, SMTP, Telnet, etc. DNS, DHCP, FTP, SNMP, RIP, VOIP, etc. Usage TCP is used in case of non-time critical applications UDP is used for games or applications that require fast transmission of data Ordering TCP rearranges data packets

Difference between HTTP and Socket Connection

HTTP Connection       HTTP connection is a protocol that runs on a socket.       HTTP connection is a higher-level abstraction of a network connection.       With HTTP connection the implementation takes care of all these higher-level details and simply send HTTP request (some header information) and receive HTTP response from the server. Socket Connection       Socket is used to transport data between systems. It simply connects two systems together, an IP address is the address of the machine over an IP based network.       With socket connection you can design your own protocol for network connection between two systems.       With Socket connection you need to take care of all the lower-level details of a TCP/IP connection.

Configure pthread library in DevC++

Step 1 : Download pthread library package  Download Step 2 : Install pthread devpak             Way 1 : Double click the pthread devpak.             Way 2 : * Open DevC++                         * Goto Tools in the menu bar and then select Package Manager                                              * Goto Install tab in the menu bar of DevC++ Package Manager and select downloaded                              pthread devpak                                 * After that Install package   Step 3 :  Create new Project in Dev C++ and write your code. Step 4 : After goto Project menu => Project Option => Select Parameter Tab Step 5 : Select Add Library or Object option. Step 6 : Select libpthreaGC2.a file from installtion directory of Dev C++. It will be in lib directory. Step 7 : Press OK. Step 8 : Final step compile and run your program. Code: - #include <iostream> #include <pthread.h> using namespace std; void * fun_thread1(void *da

Early Binding vs Late Binding in C++

BINDING IN C++ Binding  refers to the process that is used to convert identifiers (such as variable and function names) into machine language addresses. Although binding is used for both variables and functions, in this lesson we’re going to focus on function binding. Early binding Most of the function calls the compiler encounters will be direct function calls. A direct function call is a statement that directly calls a function. For example: #include <iostream> void PrintValue(int nValue) {     std::cout << nValue; } int main() {     PrintValue(5); // This is a direct function call     return 0; } Direct function calls can be resolved using a process known as early binding.  Early binding  (also called static binding) means the compiler is able to directly associate the identifier name (such as a function or variable name) with a machine address. Remember that all functions have a unique