|
by: Richard L Rosenheim |
last post by:
I'm playing around with setting up a multicast socket. I can create a
socket for sending, and I can one that receives. Is it possible to create
one socket that can do both?
The code I've been basing my work on is the code in "IP Multicasting in C#"
by Gary Brewer, http://www.codeproject.com/csharp/multicast.asp).
The following is the code snippet that I have. I'm able to receive packets,
but sending is hanging up.
|
by: Taylor |
last post by:
I'm trying to understand inheritance. I'd like to make my own type of
IPAddress lets call it myIp.
The following gives me CS0029 error: Cannot implicitly convert type
'System.Net.IPAddress' to 'Inheritance_Testing.myIp'
Could you steer me in the right direction?
class myIp : System.Net.IPAddress
|
by: Ray Mitchell |
last post by:
Hello,
I've inherited the following code and am trying to get it
to work. As I understand it's purpose, it creates a
server, listens for a client to connect, does some work
with the client, then loops back around and listens for
the client to reconnect again in case it should become
disconnected. If the client never disconnects it just
sits there waiting forever.
|
by: zbcong |
last post by:
Hello:
I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting for a incoming connection,the relative code snipprt as following::
private IPAddress myIP=IPAddress.Parse("127.0.0.1");
private IPEndPoint myServer;
private Socket socket;
private Socket accSocket;
private System.Windows.Forms.Button button2;...
|
by: Naveen Mukkelli |
last post by:
Hi all,
How can we use "NUnit" in socket programming.
I mean, I'm writing a server program which accepts
connection requests from the clients. I want to test the
number of clients whenever a new connection is
established.
My Server code is :
---------------------------------------------------------------------
|
|
by: Brian Henry |
last post by:
I wrote a simple client / server app (nothing major, just sends text) it
works fine locally on the same system, but once i move the client to a
remote system it errors and gives me "No connection could be made because
the target machine actively refused it" what exactly does that mean? the
targed machine actively refused it? i have port forwarding set up correctly
on ISA server to forward it to the server maching...
|
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...
|
by: Nuno Magalhaes |
last post by:
One thing I've noticed is that if I try that code on a simple form load
event it works ok like this:
....form load event...
Socket socket=new
Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
IPEndPoint ep=new IPEndPoint(IPAddress.Parse(serverIP),serverPort);
socket.Bind(ep);
socket.Listen(10);
socket.BeginAccept(new AsyncCallback(AcceptConnection),socket);
|
by: O.B. |
last post by:
I have a an attribute within a Serializable class that is of type
System.Net.IPAddress. When I try to serialize the class, I get the
following error:
System.InvalidOperationException: Cannot serialize member
'SerializationTest.ConfigurationProperties.ConnectionAddress' of type
'System.Net.IPAddress', see inner exception for more details.
System.InvalidOperationException: System.Net.IPAddress cannot be
serialized because it does not...
|
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...
|
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...
|
|
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|