473,809 Members | 2,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question about networking in VB

I've come from the VB 6.0 world where, when I wanted to make a client/server
applet, I'd use the built-in Winsock ActiveX control. Now I'm trying to move
on to Visual Basic .Net (if that is, indeed, what comes with Visual Studio
2005). I've noticed that there isn't a corresponding Winsock-like control
for creating network applets that use non-standard TCP/IP-based protocols
(such as HTTP or FTP). So my question is simply how do I create a
client/server application which uses a custom TCP/IP-based protocol? Or is
that simply not the way developers do things these days....
Oct 3 '07 #1
2 1177
I think you will find a much more robust library that what we had in VB 6 in
the System.Net.Sock ets namespace.

There are examples all over the web from complex to mundane.

Check out TCPClient, TCPListener

"Steven Davidson" <St************ @discussions.mi crosoft.comwrot e in
message news:E0******** *************** ***********@mic rosoft.com...
I've come from the VB 6.0 world where, when I wanted to make a
client/server
applet, I'd use the built-in Winsock ActiveX control. Now I'm trying to
move
on to Visual Basic .Net (if that is, indeed, what comes with Visual Studio
2005). I've noticed that there isn't a corresponding Winsock-like control
for creating network applets that use non-standard TCP/IP-based protocols
(such as HTTP or FTP). So my question is simply how do I create a
client/server application which uses a custom TCP/IP-based protocol? Or
is
that simply not the way developers do things these days....

Oct 3 '07 #2
=?Utf-8?B?U3RldmVuIER hdmlkc29u?=
<St************ @discussions.mi crosoft.comwrot e in
news:E0******** *************** ***********@mic rosoft.com:
So my
question is simply how do I create a client/server application which
uses a custom TCP/IP-based protocol? Or is that simply not the way
developers do things these days....

Take a look at System.Net Namespace. The socket classes (HTTP, TCP, SMTP)
are in there. FTP and other protocols will require custom code (i.e. manual
socket parsing) or a 3rd party component.

Or you could us WCF, Remoting, or Web Services.

Oct 3 '07 #3

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

Similar topics

1
1684
by: hyperbob | last post by:
Hello, I'm in the design stage of an application that will consist of two or more processes that will be either on different computers in a network or on the same computer and will have to communicate with each other. I don't have much experience with networking, inter-process communication or client-server architectures, and I'm wondering what is the best way to do it. These are the basic functions that need to be: 1. Some processes will...
65
5401
by: perseus | last post by:
I think that everyone who told me that my question is irrelevant, in particular Mr. David White, is being absolutely ridiculous. Obviously, most of you up here behave like the owners of the C++ language. A C++ interface installation IS ABOUT THE C++ LANGUAGE! The language does not possess the ability to handle even simple file directory manipulation. Those wise people that created it did not take care of it. So, BOOST is a portable...
1
1303
by: JHenstay | last post by:
I have a "Generic Application Class" which does tasks such as setup and register the window, etc. The general idea was I could make a child class of this for my project and inherit all of the necesary methods. This works fine. My question is in regards to things like "DirectX" and "Networking". As far as I can tell, I guess I have 2 options in order to implement these things: 1 - Make classes that sit in the hierarchy between my...
2
4021
by: Ed Fair | last post by:
Hi, I am having a name collision between a library call and a class I've created. My class is called "socket", it abstracts a TCP socket. In my constructors for my class, I am calling the socket library function socket(): m_mySocket = socket(AF_INET,SOCK_STREAM,0)
6
2835
by: James Egan | last post by:
I've seen some networking toolkits for C++, but was wondering if there were (or plans for) a standard set of networking classes for C++? Also, can someone tell me where I can find a comprehensive class reference? -Thanks
7
8927
by: Brian Keogh | last post by:
Hi, I'm a student learning TCP/IP networking at University. Although I understand all about TCP/IP Networking in Java I am expected to understand the basics of C with regard to these programs as all the examples in my course notes and Exams refer to C. Can someone please point me in the right direction to where I might find answers on the web explaining C code involved with TCP/IP networking and what they mean. These are quite basic I'm...
46
2146
by: H.A. Sujith | last post by:
Why doesn't the standard library provide (at least basic) networking facilities using TCP/IP ?
1
1552
by: Brian Henry | last post by:
Hello, I was tring to learn socket's (being i never used them before) and have a simple question. I want to create a listner that will get any data recieved and print it out. I've been able to get it to recieve only one line of data, but the next one i send to it wont be printed like the 1st one. I had a listner running in a thread, does anyone have a simple listner code example that would show how to have a tcplistner thread running...
6
2262
by: charles_gero | last post by:
Hi Everyone, I have a quick question regarding access to a file from disparate CHAR_BIT systems. Has anyone had experience writing a file on a system where CHAR_BIT is one value (let's use the value of 10) and then reading said file from a system where this value is different (let's say the common value of 8)? I'm just curious how this would play out with respect to the standards, etc. So for example, if I have a system where...
1
1906
by: chinaemerem ibeawuchi | last post by:
What is the difference between URL networking and Socket networking? with an example of each type and state why the choosen networking technique is most appropriate for the example.
0
9601
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
10637
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...
1
10379
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
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
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
5550
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...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.