Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > authentication and access control (.NET socket connection)

Reply
Thread Tools

authentication and access control (.NET socket connection)

 
 
Dan
Guest
Posts: n/a
 
      03-18-2005
Hi,

Can someone point me in the right direction on a really simple access
control issue? Here is the situation:

1. an app on a client computer connected to internet and executes this kind
of code:
acceptor = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
acceptor.Bind(new IPEndPoint(IPAddress.Any, port));
acceptor.Listen(ListenQueueSize);
socket = acceptor.Accept();

2. on a web server executes this kind of code:
socket.Connect(new IPEndPoint(ip, port));
sockets[i] = socket;
nHosts += 1;
socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1);
socket.SetSocketOption(SocketOptionLevel.Socket,So cketOptionName.Linger,new
System.Net.Sockets.LingerOption(true, LingerTime));

This code executes fine, my problem is that the client asks for a user name
and password to access the server and I don't want that to happen, I want
the client (code) to know the server login so this dialog does not appear.

So my question is, how might this be done?

Thanks very much for helping!

Dan


 
Reply With Quote
 
 
 
 
Feroze [msft]
Guest
Posts: n/a
 
      03-24-2005
Can you give more details, as to what application/port your socket client is
connecting to?

--
feroze

-----------------
This posting is provided as-is. It offers no warranties and assigns no
rights.

See http://weblogs.asp.net/feroze_daud for System.Net related posts.
----------------

"Dan" <> wrote in message
news:...
> Hi,
>
> Can someone point me in the right direction on a really simple access
> control issue? Here is the situation:
>
> 1. an app on a client computer connected to internet and executes this

kind
> of code:
> acceptor = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
> ProtocolType.Tcp);
> acceptor.Bind(new IPEndPoint(IPAddress.Any, port));
> acceptor.Listen(ListenQueueSize);
> socket = acceptor.Accept();
>
> 2. on a web server executes this kind of code:
> socket.Connect(new IPEndPoint(ip, port));
> sockets[i] = socket;
> nHosts += 1;
> socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay,

1);
>

socket.SetSocketOption(SocketOptionLevel.Socket,So cketOptionName.Linger,new
> System.Net.Sockets.LingerOption(true, LingerTime));
>
> This code executes fine, my problem is that the client asks for a user

name
> and password to access the server and I don't want that to happen, I want
> the client (code) to know the server login so this dialog does not appear.
>
> So my question is, how might this be done?
>
> Thanks very much for helping!
>
> Dan
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 1 02-03-2009 06:20 AM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 0 02-01-2009 12:45 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 0 02-01-2009 07:37 AM
socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 1 01-27-2009 05:05 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48,'Address already in use') Jean-Paul Calderone Python 0 01-27-2009 01:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57