473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Creating a windows service that uses sockets

I am familiar with how to use winsock in vb6 to create a network app. I'm
trying to find a way to take the current vb6 app and create a windows service
using system.net.sockets. How do you create a service (for the server side)
that accepts incoming client connections using system.net.sockets?
--
Sean McIntire
Oct 8 '07 #1
2 3562
On Oct 8, 1:15 pm, SeanMac <Sean...@discussions.microsoft.comwrote:
I am familiar with how to use winsock in vb6 to create a network app. I'm
trying to find a way to take the current vb6 app and create a windows service
using system.net.sockets. How do you create a service (for the server side)
that accepts incoming client connections using system.net.sockets?
--
Sean McIntire
I'm not sure I understand your question? Do you not know how to use
sockets in .NET? In that case:

http://msdn2.microsoft.com/en-us/library/b6xa24z5.aspx

Is a pretty good starting point (there are links for other versions of
the framework.). I would concentrate on the asyncronous examples.
As far as using them in a service, well there is no difference
between using them in a client application and using them in a
service.

--
Tom Shelton

Oct 9 '07 #2
I have many checkreaders that currently send data to a visual basic program I
wrote that verify that the customer has not written any bad checks to us.
The program was written in vb6 and is installed on a windows 2003 server and
has a visual interface. The information is passed from the check reader to
the server and a response is sent back all using sockets. My vb6 program
uses winsock and I am new to using sockets in vb 2005.

Most of the sample service applications I have seen include the use of a
timer. Hopefully, a timer is not a requirement to create a windows service.
I am hoping that the service can just use the socket's listen function.

I am also looking for a way for the service activity to be viewed by another
application which could start and stop the service if need be as well as list
transactions.

Thank you,
--
Sean McIntire
"Tom Shelton" wrote:
On Oct 8, 1:15 pm, SeanMac <Sean...@discussions.microsoft.comwrote:
I am familiar with how to use winsock in vb6 to create a network app. I'm
trying to find a way to take the current vb6 app and create a windows service
using system.net.sockets. How do you create a service (for the server side)
that accepts incoming client connections using system.net.sockets?
--
Sean McIntire

I'm not sure I understand your question? Do you not know how to use
sockets in .NET? In that case:

http://msdn2.microsoft.com/en-us/library/b6xa24z5.aspx

Is a pretty good starting point (there are links for other versions of
the framework.). I would concentrate on the asyncronous examples.
As far as using them in a service, well there is no difference
between using them in a client application and using them in a
service.

--
Tom Shelton

Oct 10 '07 #3

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

Similar topics

0
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
1
by: A Hirsi | last post by:
I have created a vb .net program as a service that is using a simple ftpclient to connect to a remote server and check the status of a file for subsequent downloading if there have been changes to...
4
by: SH | last post by:
I wish to create a program (really a Windows Service) that sits and waits for a client PC to communicate with it, but I can't come up with a good method of doing so. I want to have a service...
7
by: JohnSouth | last post by:
Hi My application needs to get XML files from another system at irregular intervals. I'm looking at running a c# program on my server as a Windows Service that uses a .Net Web Service to...
11
by: kshetgar | last post by:
I am experiencing a wierd problem... I have a C#.Net application Server which uses Sockets. It listens on port 11000. and it runs as a Windows Service. If I run it as a consple Application,...
0
by: Kumar Shetgar | last post by:
I am experiencing a wierd problem... I have a C#.Net application Server which uses Sockets. It listens on port 11000. and it runs as a Windows Service. -- If I run it as a consple...
0
by: ArkJ | last post by:
Hello. I have a little problem. I created a little Service which uses SIP, all works rather well, but when I want to shut it down in the Services panel, it looks as if it's shut down, but in fact...
7
by: GD | last post by:
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test...
1
by: mdhaman | last post by:
hi, I have a windows service written in VB.Net and framework 2.0. It is a multithread service and it is using threadpool to manage threads. Recently I have started getting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.