I'm using a TcpClient passed to me from a TcpListener, and for the life of me I can't figure out a simple way to get the address and port it's connected to.
The best I have so far is _client.Client.RemoteEndPoint.ToString(); which returns a string in the form FFFF::FFFF:FFFF:FFF:FFFF%00:0000. I've managed to extract the address and port...
That's odd, TBaseSocket's WaitForData documentation specifies that you should call it before SendBuf and Sendln calls.
I had a quick try and (perhaps because I trying to write first) this WaitForData call returns false. (after timing out the specified timeout)
So is this incorrect? Or incomplete? Or only valid in a number of circumstanc...
On unix system when you call the accept system call, does the newly created socket have a different port number from the listening socket?
...
Hi,
I have an ASP.NET application which talks to a third-party SOAP web service. My application uses an ASMX client proxy (i.e. System.Web.Services.Protocols.SoapHttpClientProtocol). The third-party service uses WCF, although I don't expect that makes much difference.
I should note that we're using .NET 3.5 SP1.
We haven't customised ...
I am about to write a tcp/ip data relay - application that passes a one way stream of data from one host/port to another host/port. Initially it will be generic, but later on i will customize it to the need of a specific business request.
I am guessing that something generic already exists out there so my question is:
Has anyone used a...
How can I specify a cipher suite to use in an SSL Connections?
I know that Mentalis Seclib got this feature however they don't maintain the project (and there are issues in that library with x64 OSes) as they say .NET Framework 2.0 introduced those features.
However I couldn't find a way to do this in .NET Framework 3.5.
To be more s...
What I'm currently trying to do is make a very basic webchat for irc using silverlight.
Basically how I'm trying to do it is have a tcp server listening for connections from silverlight. When a client connects it creates a new connection to irc and data is passed to/from the client/irc via the server application.
I've gotten it to work...
Trying to set up a script to send commands to a remote client on a Win32 system. Here is the code:
$command = $_POST['command'];
$host = $_POST['host'];
$port = $_POST['port'];
$fp = @fsockopen($host, $port, $e, $s, 15);
if (!$fp) {
echo 'Error! Here\'s your problem: ' . $e . ': ' . $s;
}else{
$fw = fwrite($fp, $command);
...
Hello. Right now I'm working in a simple Server that receives from client a code referring to a certain operation. The server receives this data and send back the signal that it's waiting for the proper data.
/*Server Side*/
if (codigoOperacao == 0)
{
pr...
Hello!
I'm wondering how to limit the TCP requests per client (per specific IP) in Java. For example, I would like to allow a maximum of X requests per Y seconds for each client IP. I thought of using static Timer/TimerTask in combination with a HashSet of temporary restricted IPs.
private static final Set<InetAddress> restrictedIPs = ...
Context: Master server (Java, TCP) monitoring a list of hosted games (a different machine for the master server and for each hosted game server). Any user can host a game on his PC. Hosted games can last weeks or months.
Need: Knowing when hosted game servers are closed or no longer reachable.
Restriction 1: Can't rely on hosted server...
I have a device which send me data over a particular port. The data is in XML Format.
Now I already did a small console application which listen for the data and print out the data on the screen.
Now my plans are to deserialize the xml data or I will create the insert statement into the database.
1) The device send me the data every s...
While trying to debug a network problem, I've run into some difficulties understanding the output of some diagnostic tools.
Context: distributed application over 7 nodes on a Linux cluster. 1GB ethernet, sustained data rate while on operation: 600Mbits per node (up+downstream). The symptom is a blocked TCP connection: sender blocks on a...
well, i have network that each proxy (lets assume we have 200 proxies), send UDP packages every constant amount of time. (let assume 10 seconds) to constant amount of hosts (lets assume 10)
my question is how will 6 * 10 seconds * 200 proxies * 10 target hosts = 120,000 UDP roundtrip communication per minute will affect my network, in te...
How to send\recive SslStream from TCP server in C#? I need a simple tutorial on baciks of TCP stream protection using Sockets, SSLStreams and simple TCP listrning server... Is there any such tutorial? Please, help
...
What is WCF webHTTPbinding from TCP point of view? So - how hard it is from not needed data flow it is? How hard it is in compare to other WCF bindings?
...
I'm trying to use LISTSERV's "API" in PHP. L-Soft calls this TCPGUI, and essentially, you can request data like over Telnet. To do this, I'm using PHP's TCP socket functions.
Here's the C code provided by L-Soft:
C: http://www.lsoft.com/manuals/16.0/htmlhelp/advanced%20topics/TCPGUI.html#2334328
I've provided the PHP conversion I'm us...
I have an application with fairly high traffic (20K req/min) running on the JVM with a Jetty servlet container on Ubuntu. Below is my Jetty configuration:
10
20
2000
2
When I analyze the network traffic, I realize that sometimes it is taking long to establish TCP connections on the port that Jetty is runn...
Hi there, I have something like a proxy server (written in java) running between my clients and the actual video server (made in c++). Everything the clients send goes through this proxy and is then redirected to the server.
It is working fine, but I have some issues and think it would be better if I could make this proxy server only to...
I'm trying to make a simple msn client mostly for fun but also for educational purposes. And I started to try some tcp package sending and receiving using Boost Asio as I want cross-platform support. I have managed to send a "VER"-command and receive it's response.
However after I send the following "CVR"-command, Asio casts an "End of ...