networking

posted recv buffers returned syncronously or async after calling rdma_disconnect()

When calling rdma_disconnect(), do I get completion queue events for all posted recv work requests before rdma_disconnect() returns, or should I expect them to come in after rdma_disconnect() has returned? ...

How can I implement a download rate limited in Java?

Hello, I'm going to implement a (simple) downloader application in Java as a personal exercise. It is going to run several jobs in different threads, in a way that I will be downloading a few files at the same time at all times during execution. I want to be able to define a download rate limit that is shared between all the download j...

Looking for a list of aliases

All, I have an IP address and I want to know all aliases within my organization that point to this IP. Is it possible? For example I know the alias "TESTBOX" points to 119.119.119.119. How can by just knowing the IP come up with the "TESTBOX" ? Thanks, M ...

getnameinfo specifies socklen_t

The 2nd arg for the getnameinfo prototype asks for a socklen_t type but sizeof uses size_t. So how can I get socklen_t ? Prototype: int getnameinfo(const struct sockaddr *restrict sa, socklen_t salen, char *restrict node, socklen_t nodelen, char *restrict service, socklen_t servicelen, int flags); Example: struct socka...

Invoke web page from Linux C

Hi, I need to read all the HTML text from a url like http://localhost/index.html into a string in C. I know that if i put on telnet -> telnet www.google.com 80 Get webpage.... it returns all the html. How do I do this in a linux environment with C? ...

TACACS lib for java

The only open source TACACS lib I was able to find was Jnetlib http://sourceforge.net/projects/jnetlib But there is not any description about how to use it!! Anyone have used it before?? thanks ...

Sending information down a socket in C#

I have built two programs in C# and I am sending simple strings through the sockets. This is fine for the moment but in the near future I will need to send more complicated items, such as objects down the sockets and eventually files. What steps would I take to do this? What purpose do the buffers serve for the sockets/streams? Apolo...

Java BufferedReader readline blocking?

I want to make an HTTP request and then get the response as sketched here: URLConnection c = new URL("http://foo.com").openConnection(); c.setDoOutput(true); /* write an http request here using a new OutputStreamWriter(c.getOutputStream) */ BufferedReader reader = new BufferedReader(new InputStreamReader(c.getInputStream)); reader.rea...

If I read/write to a TCP socket that is on localhost, will that avoid firewalls?

If I want to open a TCP socket between 2 processes on the same computer, will having the server run on localhost and the client connect on localhost be safe from any firewall intervention? ...

How efficient BSD sockets to writew server client application on iphone?

Hi, I am creating server-client application for iPhone. I want to communicate between two application in same network. For this functionality i am planning to use sockets. How much efficient BSD sockets to use with iphone?? Is there any option available to implement same functionality? Thanks, Jim. ...

How to get started on implementing a distributed filesystem?

What resources would you recommend I look into to get started on implementing a basic distributed filesystem? Are there any open source distributed filesystems that are simple enough to be a good starting point? ...

Blackberry max bytes for IPPP connection

I'm trying to determine the max number of KB allowed for an IPPP connection through a BES a BlackBerry is connected to. In a develoment environment, I can check this via the 'IPPP.connection.MaxNumberOfKBytesToSend' variable inside the 'rimpublic.property' file. Does anyone know how to detect this on a device running in the field? Tha...

How to make my Java Swing application a Client-Server application?

I have made a Java Swing application. Now I would like to make it a Client-Server application. All clients should be notified when data on the server is changed, so I'm not looking for a Web Service. The Client-Server application will be run on a single LAN, it's a business application. The Server will contain a database, JavaDB. What t...

UNC path to a folder on my local computer

Hi all, What's the UNC path to a folder on my local computer, and how can I access it? I have tried: 1. Security for the folder -- set to Everyone Full Control (for now!) 2. Sharing permissions -- set to Everyone Full Control (for now!) I can see the folder in \, but can't go in ( is not accessible.) Error message: "You might not have p...

How to implement thread timeout in J2ME?

I am using Connector in J2ME and found that sometimes it take a very long time to send a request, and sometime it may halt the whole process. So I try to put code related to Connector in a thread and try to set timeout to the thread. But I found out that it's very difficult to do this in J2ME because there's no join(timeout) in J2ME. Is ...

Installshield permissions on Citrix network drive ??

I'm using installshield express to write a simple installer. I need to set read/write/modify rights to the database directory. ( Because of Vista/Win7 users with restricted rights) I'm setting FullControl permissions to all folders within "DATABASDIR". ( [%USERDOMAIN] [LogonUser] ). This works fine in XP / Vista / Win 7 etc. The proble...

Programatically determining maximum transfer rate

I have a problem that requires me to calculate the maximum upload and download available, then limit my program's usage to a percentage of it. However, I can't think of a good way to find the maximums. At the moment, the only solution I can come up with is transfering a few megabytes between the client and server, then measuring how lin...

Java sockets - how to determine data type on the server side?

I'm using Java sockets for client - server application. I have a situation when sometimes client needs to send a byte array (using byteArrayOutputStream) and sometimes it should send a custom java object. How can I read the information from the input stream on the server side and determine what is in the stream so that I can properly pro...

Depmod - unresolved symbols in rt73 module

I'm trying to install a linux driver for my wireless network card (D-Link DWL-G510) on my Red Hat Linux 7.1 machine with a 2.4.37.9 kernel. I downloaded the serial monkey driver from the sourceforge site and was able to successfully compile the module. However, whenever I do a "make install", the make script executes a "depmod -a" comman...

WinSock best accept() practices

Imagine you have a server which can handle only one client at a time. The server uses WSAAsyncSelect to be notified of new connections. In this case, what is the best way of handling FD_ACCEPT messages: A > Accept the connection attempt right away but queue the client until its turn? B > Do not accept the next connection attempt until ...