473,815 Members | 3,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how i run a tcplistener in a windows service

I need to execute a TcpListener in a windows service.

tanks for the help.

Nov 15 '05 #1
4 6727
> I need to execute a TcpListener in a windows service.

tanks for the help.


Try this:

TcpListener listener = new TcpListener(the PortToListenOn) ;
listener.Start( );

-JG
Nov 15 '05 #2
Hi Byron,

What exactly is what you are tryig to do. I can post you some code if you
need it.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"byron guerrero" <bg******@banca red.com.gt> wrote in message
news:1d******** *************** *****@phx.gbl.. .
I need to execute a TcpListener in a windows service.

tanks for the help.

Nov 15 '05 #3
Hi,

What you mean with implement SSL?
and why you cannot use IIS?

Anyway, take a look at this post:
http://groups.google.com/groups?hl=e...ublic.dotnet.*

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"bguerrero" <bg*******@banc ared.com.gt> wrote in message
news:13******** *************** *****@phx.gbl.. .
Hi, thanks fot answer.

i need to implement ssl/tls on a window service, because i
cant use iis server to handle this. So i need to implement
ssl and tls on a tcplistener.

Thanks for the help
-----Original Message-----
Hi Byron,

What exactly is what you are tryig to do. I can post you

some code if you
need it.

Cheers,

--
Ignacio Machin,
ignacio.mach in AT dot.state.fl.us
Florida Department Of Transportation

"byron guerrero" <bg******@banca red.com.gt> wrote in

message
news:1d******* *************** ******@phx.gbl. ..
I need to execute a TcpListener in a windows service.

tanks for the help.

.

Nov 15 '05 #4
> i need to implement ssl/tls on a window service, because i
cant use iis server to handle this. So i need to implement
ssl and tls on a tcplistener.


Scott Allen responded to a question similar to this one a few days ago.
Here's a link you might want to check out:

http://www.mentalis.org/soft/projects/ssocket/

-JG
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6477
by: Keith Langer | last post by:
I have a TCPListener which needs to listen on my LAN IP as well as the loopback address. In VS.Net 2002 the TCPListener constructor could accept the port as an argument and it automatically bound to all network adapters (this is also how it worked with VB6). Now that constructor is obsolete, and the new one requires an IPEndPoint or IPAddress. How could I listen on the same port on all network adapters using VS.Net 2003? I'd rather...
1
1821
by: Doug Wyatt | last post by:
So I'll preface this with the fact that I'm a UNIX developer by training and have just recently gotten in to C# development on Windows. I'm basically running in to a problem whereby I suspect something to do with process groups or threads and closeOnExec semantics (to speak in POSIX terms) is causing me a problem. I've got a windows service (let's call it "myService") that, among other things, does : onStart creates a TcpListener on a...
4
4402
by: Rob White | last post by:
OK, so I have a TcpListener that is waiting for sockets, this piece of code: IPAddress localAddress = Dns.GetHostByName(Dns.GetHostName()).AddressList; IPEndPoint localEP = new IPEndPoint(localAddress, 9000); TcpListener tcpListen = new TcpListener(localEP); tcpListen.Start(); Socket skt = tcpListen.AcceptSocket(); .... do some socket stuff skt.Close();
0
1093
by: bertymaes | last post by:
Hi, I'm using VB in VS2005 on a WXP SP2 machine to build a windows service that listens to a port to accept messages. This solution works fine when a connecting client sends a message, waits for an ACK and disconnects. We now want the socket to remain OPEN after sending the ACK, which it used to do on beta2 and older machines. Does anyone know which property to set or another solution to keep the socket open after the send.
4
3527
by: Thos | last post by:
I have a TcpListener that gets started from a GUI button event handler: TcpListener listener; listener = new TcpListener(IPAddress.Any, 1234); listener.Start(backLog); As soon as the third line runs, the app freezes, the CPU goes to 100% on that CPU (Core Duo) and debugging can't break out of it. I can't even stop the process with the Task Manager but have to reboot to get
0
1130
by: Thos | last post by:
When I debug a standard socket server app that has a tcplistener using VS.NET 2005, the debugger deadlocks (uses 100% of one of my CPUs) when the code runs the tcplistener.Start(). method. I am having the same problem in a sample socket server app that uses socket.Bind(). Both deadlock at this point. Both of them worked normally a week ago on a fresh system (windows xp pro sp2. I have already completely reinstalled my OS to get rid of...
2
3996
by: =?Utf-8?B?Sm9uIEphY29icw==?= | last post by:
I use in vb (VS2005) Server = New TcpListener(PortNumber) Which is simple and straightforward. But I get Public Sub New(port As Integer) is obsolete: This method has been deprecated. Please use TcpListener(IPAddress localaddr, int port) instead. It also gives a link that returns "page not found."
4
3419
by: =?Utf-8?B?Sm9uIEphY29icw==?= | last post by:
(Note: the TCP Client is on another machine, and attempts communication every minute.) Both apps use the same assembly The service app starts thusly, creating the tcp object and starting the timer in the OnStart event. The timer calls OpenServer (one time): Public Class TCPService Private tcp As SimpleTCP Private Timer1 As Timer
6
4155
joedeene
by: joedeene | last post by:
hey, kinda confused, like when i use a thread and set its address of property to a sub that has a tcplistener starting in it or something with tcplistener, i can access other windows controls, like by editing a textbox's string value with no problem, without getting a cross-thread operation, but for my client app, i get cross-thread exception, and i really dont know how to handle those properly. so i got two questions: 1) how to access a...
0
9735
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9610
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10670
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10408
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10426
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.