tcp

restart/iisreset disables NET.TCP protocol ?

I'm hosting a WCF service in IIS7 on Windows Server 08, sp2. The service is hosted as its own website and is exposed via a NET.TCP endpoint. The service works perfectly until a restart/iisreset command is issued. After restart or iisreset, when I make any service call, I receive the following error: 'System.ServiceModel.EndpointNotFound...

How to find server is down,

I have client and server in unix machine, how can i find out my server is down and reconnect to server. without bringing my client down. I am doing connect (), but read() isiving me error Transport endpoint is already connected. I am using C++ in solaris. Can i reconnect back when i start server without bringing client down ?? And ...

Can WCF TCP and HTTP endpoints have the same port?

I'm interested in one WCF server exposing both HTTP and TCP interfaces. It'll be used with Silverlight clients, so the thinking is that the HTTP interface will be for secure communications while TCP will be used the rest of the time. Is it possible for these two interfaces to use the same port in their endpoints, e.g. http://localhost:...

How to send stream data via Bluetooth from an iPhone/iPod Touch to a Windows C++ application?

Hello, I need to develop an iPhone/iPod Touch application that creates a server to send some data stream (characters or bytes) to a Windows C++ application via Bluetooth. I'm thinking of creating a TCP connection, but don't know where to start. What iPhone API should I use do to something like this? Does anyone knows some code examples...

I am getting an exception when my tcp client connects to the server with ip address but works with "localhost"

I am writing a simple C# tcp client and server program. The server will eventually be on a different machine but now I am just testing on the same machine. I am getting an exception error "Only one usage of each socket address (protocol/network address/port) is normally permitted" when I create my TcpClient using the ip address. But it...

Creating TCP network errors for unit testing

I'd like to create various network errors during testing. I'm using the Berkely sockets API directly in C++ on Linux. I'm running a mock server in another thread from within Boost.Test which listens on localhost. For instance, I'd like to create a timeout during connect. So far I've tried not calling accept in my mock server and sett...

Will EAGAIN return on send for anything other than buffer full?

If I use send() on a non-blocking tcp socket in Linux will it return EAGAIN for anything other than a send buffer full condition? I basically need to decide if I want to use the socket send buffer as the only buffer for my app or if I need my own user space buffer to feed the socket buffer. ...

boost::asio handshake through http proxy?

quite new to boost and asio, need help connect to proxy asio::ip::tcp::socket socket_; send CONNECT host: ssl server to the proxy receive response 200 asio::ssl::context ctx(io_service, asio::ssl::context::sslv23); sslsocket_(socket_,context) try handshake sslsocket_.async_handshake(asio::ssl::stream_base::client, boost::bind(&clien...

With C TCP sockets, can 'send' return zero?

Is it ever possible for the C send function to return zero when using TCP sockets? The man page just says that it will return the number of bytes sent, but I am not sure if it will just return -1 when it can't send any data. ...

is it possible to limit the network traffic from my PC to my PC?

Hi Guys I'm debugging some CS program and to view the performance of the application in slow internet I tried many different ways. However the best would be the Server and the client be in the same PC ---- my debugging environments for both the server side and the client is setup in one PC. So I'm wondering is there anyway to limit the ...

closing a connection with twisted

Various connections - e.g. those created with twisted.web.client.getPage() seem to leak - they hang around indefinitely, since the OS time-out is measured in hours - if the server doesn't respond timely. And putting a time-out on the deferred you get back is deprecated. How can you track the requests you have open, and close them force...

Recommendations for Secure TCP Connections For Consumer Application

I'm designing a training program in C++ that will be distributed to a large number of facilities, most of which won't have much in the way of an IT staff. The program connects via a TCP connection to a central database which stores various pieces of data for research and evaluation purposes. The problem I have is that I would like to ma...

Hibernate: send entity through TCP lose persistentbag(or not update it)

Hi all, i have an entity with a @OneToMany relationship: @OneToMany(mappedBy="a", fetch=FetchType.EAGER) @Cascade(CascadeType.SAVE_UPDATE) private List<B> bList; Im writing a server/multiclient app: a client send A to server and server resend A to other clients. So, client1 send A with bList that has size 3. Server receive A entity, b...

Can you send a file larger that the SendBufferSize throuh a TcpClient?

I am experimenting with the Tcp connections in .NET and I would like to send some data that is larger than the SendBufferSize proporty of the TcpClient object. Is it possible to send the data by simply writing to the network stream or do I need to cut it in pices and send those and at the other end create it again? ...

When sending data larger than the SendBufferSize, how will the data be received?

I just asked a question on how to send data larger than the SendBufferSize and the answer was that is would be send in a couple of parts. My second question is how will this data be received? Will it be complete in the network stream or will it get it divided. the first question: http://stackoverflow.com/questions/3097695/can-you-send-...

Why does my Client Server Socket Connection Keep Disconnecting

Hi All, I have a client server application writter in C# .NET using Sockets. I often get log messages (say about 4 per hour) saying this message, An existing connection was forcibly closed by the remote host In this case here the error is occuring on the 'server' side. I decided to use wireshark to analyse what is occuring, and I g...

[hibernate] Can i send an @entity through TCP java socket?

Hi all, all my test fails ... so is possible send an @entity using a TCP socket? UPDATE Problem is related at this post http://stackoverflow.com/questions/3097269/hibernate-send-entity-through-tcp-lose-persistentbagor-not-update-it Thanks. ...

c# Sure Fire Way to Detect Port Usage

Been back and forth on this recently. Trying to attach a SSH tunnel from a localhost port on my machine to an internal port on the other side of an Internet accessible SSH server using Putty. Putty does not check if the port is available. Before I open the Putty connection, I would like to verify the port is free. It works fine if the p...

VB6 COM - WCF Duplex Communications?

I am currently working on a solution to allow multiple Visual Basic 6 applications to talk and sync with each other. My background is mainly managed C#, but I have a little background with VB6 and C++ and is why a pure managed solution would be optimal for me. Windows Communication Foundation (WCF) was my first choice, but I am struggl...

Network error handling in silverlight 3

Hi all. We are writting silverlight3 application, which use Tcp connction. Our project use client server architecture. Client part is silverlight application, and server part is winform application. We use TcpClient and TcpListner for connection. We can handle following errors: 1. user shut down 2. users network cable unpluging 3. server...