You Are Here:

Community: Wiki

This page was last modified on 25 September 2009, at 20:23.

Open C Sockets Overview

From Forum Nokia Wiki

Reviewer Approved   

Following are the generic functions for socket interface such as sending and receiving messages from a socket.

  • connect -- Initiates a connection on a socket
  • getpeername -- Gets name of connected peer socket
  • listen -- Listens for connections on a socket
  • recv -- Receives a message from a socket
  • send -- Sends a message from a socket
  • recvfrom -- Receives a message from a socket
  • sendto -- Sends a message from a socket
  • shutdown -- Brings the system down
  • socket -- Creates an endpoint for communication
  • bind -- Bash built-in commands
  • getsockname -- Gets socket name
  • getsockopt -- Gets options on sockets
  • setsockopt -- Sets options on sockets

And following are some of the namespaces used in Open C Socket Interface:

  • if_freenameindex -- Free memory allocated by if_nameindex
  • if_indextoname -- Maps a network interface index to its corresponding name
  • if_nameindex -- Returns all network interface names and indexes
  • if_nametoindex -- Maps a network interface name to its corresponding index


A 3rd-party application needs the NetworkServices capabilities in order to use socket interface functions.

libc.lib should be linked while using the above functions and sys/socket.h should be included.

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fThemesE3aHomeE5fScreenX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ