Tuesday

Socket Programming

Socket is a connection point of client-server that consists of
identification number of remote host and local host
port number of remote host and local host

A socket is created using the function socket() and it returns integer
#include 
#include
int socket(int domain, int type, int protocol)
int select() // find active socket
int connect()//used by a client program to establish communication with a remote entity.
int bind(int s, struct sockaddr *name, int namelen)//associate a port number with the socket.
int listen() //indicate the socket is to be listened
int accept() //Request Receive
int recv() //receive incoming messages
int send() //send outgoing messages

0 comments:

Comments

Bagish

The Official Google Blog

Inside AdWords

Blog Archive

Tech

TechCrunch

Google Analytics Blog

http://bagish.blogspot.com

Back to TOP