socket()

From: visu (shanker_bejjanki_at_persistent.co.in)
Date: 02/27/05


Date: Sun, 27 Feb 2005 14:06:12 +0530

Hi

When we create socket for server , first we use SOCKET () then we will Bind
() to the port .

what is the use of this kind of mechanism .

If u compare this with file opening . why not fopen() used then it will
Bind() with file name ..?

we use only one statement to open file , But why we use two statement to
open socket connection..

(why can't we provide port , server structure in socket.) .

why they designed like that ...?

Please clear me..

Thanks

Shanker Bejjanki



Relevant Pages

  • socket()
    ... to the port. ... Bind() with file name ..? ... open socket connection.. ... Shanker Bejjanki ...
    (microsoft.public.windows.server.networking)
  • socket()
    ... to the port. ... Bind() with file name ..? ... open socket connection.. ... Shanker Bejjanki ...
    (microsoft.public.security)
  • Re: How to listen to more a specific IP and specific ports
    ... bind my socket to specific unlimited and selective IP addresses. ... Moreover, in Unix/Linux Berekly network programming, you can determin the ... port numbers. ...
    (microsoft.public.win32.programmer.networks)
  • Re: How to listen to more a specific IP and specific ports
    ... I have read this long time ago in the textbook Unix Network Programming ... service and connect our socket to INADDR_ANY and then listen for incoming ... Its clear to me on how to bind with ... port numbers. ...
    (microsoft.public.win32.programmer.networks)
  • Re: How to listen to more a specific IP and specific ports
    ... bind my socket to specific unlimited and selective IP addresses. ... Moreover, in Unix/Linux Berekly network programming, you can determin the IP ... port numbers. ...
    (microsoft.public.win32.programmer.networks)